fixing default values for the uid in the create db script
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 19 Oct 2017 19:20:34 +0000 (15:20 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 19 Oct 2017 19:20:34 +0000 (15:20 -0400)
updating create db script to set the default values and datatypes

setup/databaseScripts/create_database_V0.0.4.sql

index c98235f..a731cd5 100644 (file)
@@ -20,8 +20,8 @@ CREATE TABLE {prefix}custom_fields (
   field_order SMALLINT NOT NULL DEFAULT 0,      -- Order for Field
   admin_search BOOLEAN NOT NULL DEFAULT '0',    -- If the field is added to member list filters.
   required BOOLEAN NOT NULL DEFAULT '0',        -- If the field is required.
-  uid TINYTEXT NOT NULL,                             -- id for the series of custom fields associated with an entity
-  entity_id INT NOT NULL DEFAULT 0,           -- id for the specific field associated with an entity
+  uid TINYTEXT NOT NULL DEFAULT '',                             -- id for the series of custom fields associated with an entity
+  entity_id INT NULL,           -- id for the specific field associated with an entity
   PRIMARY KEY (id),
   INDEX(field_name(20))
 );