summaryrefslogtreecommitdiff
path: root/plugins/UserFlag
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-01 13:41:32 -0500
committerEvan Prodromou <evan@status.net>2009-11-01 13:41:32 -0500
commit340a88d7139fb66901ed00651399bca666a1504f (patch)
tree79476d18f032d038a12f972de09294d196e369a2 /plugins/UserFlag
parent5f5413624d166a9b2116d266c7698dd6dcd2d8c4 (diff)
make sure tables are created correctly
Diffstat (limited to 'plugins/UserFlag')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index 600ed4271..ccb1fae47 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -50,10 +50,8 @@ class UserFlagPlugin extends Plugin
// For storing user-submitted flags on notices
$schema->ensureTable('user_flag_notice',
- array(new ColumnDef('notice_id', 'integer', null,
- null, 'PRI'),
- new ColumnDef('user_id', 'integer', null,
- null, 'PRI'),
+ array(new ColumnDef('notice_id', 'integer', null, null, 'PRI'),
+ new ColumnDef('user_id', 'integer', null, null, 'PRI'),
new ColumnDef('flag', 'varchar', '8'),
new ColumnDef('created', 'datetime', null,
null, 'MUL')));
@@ -61,10 +59,9 @@ class UserFlagPlugin extends Plugin
// Allowable values for user_flag_notice
$schema->ensureTable('notice_flag',
- array(new ColumnDef('flag', 'varchar', '8', null, null, 'PRI'),
+ array(new ColumnDef('flag', 'varchar', '8', null, 'PRI'),
new ColumnDef('display', 'varchar', '255'),
- new ColumnDef('created', 'datetime', null,
- null, 'MUL')));
+ new ColumnDef('created', 'datetime', null, null, 'MUL')));
// For storing user-submitted flags on profiles
@@ -80,7 +77,7 @@ class UserFlagPlugin extends Plugin
// Allowable values for user_flag_notice
$schema->ensureTable('profile_flag',
- array(new ColumnDef('flag', 'varchar', '8', null, null, 'PRI'),
+ array(new ColumnDef('flag', 'varchar', '8', null, 'PRI'),
new ColumnDef('display', 'varchar', '255'),
new ColumnDef('created', 'datetime', null,
null, 'MUL')));