Skip to content

Commit

Permalink
database: add database migration file that replaces Django fixtures
Browse files Browse the repository at this point in the history
We used to rely on a Django fixtures to add a single record of initial
data to the afe_acl_groups table. We can simply move that data to the
schema, or, as done here, in a database version migration script.

This fixes issue autotest#503.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu authored and lmr committed Aug 30, 2012
1 parent bf0acde commit b7c9de0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/afe/fixtures/initial_data.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
UP_SQL = """
INSERT INTO afe_acl_groups (id, name) VALUES (1, 'Everyone') ON DUPLICATE KEY UPDATE name='Everyone';
"""

# Since this used to be a value INSERTED by Django fixtures, do not remove it
# when downgrading versions
DOWN_SQL = """
"""

0 comments on commit b7c9de0

Please sign in to comment.