Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
bug 945179: Match on a list of locales, rather than exact only. r=nth…
…omas
- Loading branch information
Showing
6 changed files
with
104 additions
and
13 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
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
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from sqlalchemy import String, MetaData, Table | ||
|
||
def upgrade(migrate_engine): | ||
metadata = MetaData(bind=migrate_engine) | ||
Table('rules', metadata, autoload=True).c.locale.alter(type=String(200)) | ||
Table('rules_history', metadata, autoload=True).c.locale.alter(type=String(200)) | ||
|
||
def downgrade(migrate_engine): | ||
metadata = MetaData(bind=migrate_engine) | ||
Table('rules', metadata, autoload=True).c.locale.alter(type=String(10)) | ||
Table('rules_history', metadata, autoload=True).c.locale.alter(type=String(10)) |
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
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