Update the sql scripts so there's default names.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 28 Oct 2016 15:19:12 +0000 (11:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 28 Oct 2016 15:19:12 +0000 (11:19 -0400)
For the singular and plural names to have default of Amenity and
Amenities.

setup/databaseScripts/create_database_V0.1.0.sql
setup/databaseScripts/update_database_V0.1.0.sql

index e269bce..0b5a33f 100644 (file)
@@ -219,8 +219,8 @@ CREATE TABLE {prefix}management (
     to_email TINYTEXT NULL,                               -- Email address of the recipient
     from_email TINYTEXT NULL,                             -- Email address of the sender
     email_notification TEXT NULL,                         -- Email notification message
-    calendar_view TINYTEXT NULL,                          -- Default calendar view 
-    event_default_state TINYTEXT NULL,                    -- Default calendar view 
+    calendar_view TINYTEXT NULL,                          -- Default calendar view
+    event_default_state TINYTEXT NULL,                    -- Default calendar view
     term_event_amenities_singular TINYTEXT NULL,          -- Singular term to use for event amenities
     term_event_amenities_plural TINYTEXT NULL,            -- Plural term to use for event amenities
     use_event_amenities BOOLEAN NULL,                     -- Whether amenities are used at all for events
@@ -231,9 +231,9 @@ CREATE TABLE {prefix}management (
 
 -- Set default event management entry
 INSERT INTO {prefix}management
-    ( id, canonical_event_page )
+    ( id, canonical_event_page, term_event_amenities_singular, term_event_amenities_plural )
    VALUES
-    ( 1, 'event-detail' )
+    ( 1, 'event-detail', 'Amenity', 'Amenities' )
 ;
 
 ----
index 999d876..e500622 100644 (file)
@@ -15,4 +15,8 @@ ALTER TABLE {prefix}management ADD COLUMN term_event_amenities_plural TINYTEXT N
 
 ----
 
-ALTER TABLE {prefix}management ADD COLUMN use_event_amenities BOOLEAN NULL;  -- Whether amenities are used at all for events
\ No newline at end of file
+ALTER TABLE {prefix}management ADD COLUMN use_event_amenities BOOLEAN NULL;  -- Whether amenities are used at all for events
+
+----
+
+UPDATE {prefix}management SET term_event_amenities_singular = 'Amenity', term_event_amenities_plural = 'Amenities' WHERE id = 1;