Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix migrations rollback commands and comment migrations [ci skip]
- Loading branch information
1 parent
fa314d7
commit 9c24ced
Showing
7 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
webapp/install/sql/mysql_migrations/2012-07-06_alter_insights_text.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE tu_insights CHANGE `text` text TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'Text content of the alert.'; | ||
-- | ||
-- Widen text field to accommadate longer insights. | ||
-- | ||
ALTER TABLE tu_insights CHANGE `text` text TEXT NOT NULL COMMENT 'Text content of the alert.'; |
3 changes: 3 additions & 0 deletions
3
webapp/install/sql/mysql_migrations/2012-07-06_insights_feed.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
webapp/install/sql/mysql_migrations/2012-07-18_insights_prefix.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
-- | ||
-- Add insight prefix field for label/badge text in display. | ||
-- | ||
ALTER TABLE tu_insights ADD `prefix` VARCHAR( 255 ) NOT NULL COMMENT 'Prefix to the text content of the alert.' AFTER slug; |
7 changes: 7 additions & 0 deletions
7
webapp/install/sql/mysql_migrations/2012-07-19_checkin_support.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
-- | ||
-- Add icon and map_image support to places table. | ||
-- | ||
ALTER TABLE tu_places ADD icon VARCHAR ( 255 ) COMMENT 'URL to an icon which represents the place type.'; | ||
ALTER TABLE tu_places ADD map_image VARCHAR( 255 ) COMMENT 'URL to an image of a map representing the area this place is in.'; | ||
|
||
-- | ||
-- Add marker for whether or not a post archive has been loaded during a crawl. | ||
-- | ||
ALTER TABLE tu_instances ADD is_archive_loaded_posts INT( 1 ) NOT NULL DEFAULT 0 COMMENT 'Whether or not all the instance''s posts have been backfilled.' AFTER earliest_reply_in_system; |
9 changes: 6 additions & 3 deletions
9
webapp/install/sql/mysql_migrations/2012-09-04_default_values.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
ALTER TABLE tu_links CHANGE expanded_url expanded_url VARCHAR( 255 ) NOT NULL DEFAULT '' COMMENT 'Link URL expanded from its shortened form.'; | ||
ALTER TABLE tu_users CHANGE last_post_id last_post_id VARCHAR( 80 ) NOT NULL DEFAULT '' COMMENT 'Network post ID of the latest post the user authored.'; | ||
ALTER TABLE tu_links CHANGE image_src image_src VARCHAR( 255 ) NOT NULL DEFAULT '' COMMENT 'URL of a thumbnail image associated with this link.' | ||
-- | ||
-- Set default value for fields that are set to NO NULL | ||
-- | ||
ALTER TABLE tu_links CHANGE expanded_url expanded_url VARCHAR( 255 ) NOT NULL DEFAULT '' COMMENT 'Link URL expanded from its shortened form.'; | ||
ALTER TABLE tu_users CHANGE last_post_id last_post_id VARCHAR( 80 ) NOT NULL DEFAULT '' COMMENT 'Network post ID of the latest post the user authored.'; | ||
ALTER TABLE tu_links CHANGE image_src image_src VARCHAR( 255 ) NOT NULL DEFAULT '' COMMENT 'URL of a thumbnail image associated with this link.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters