diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2015-02-05 20:06:08 +0100 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2015-02-05 20:06:08 +0100 |
| commit | b816236168e74309be4a298ff0a4644a732dc9f3 (patch) | |
| tree | 1497dced7d755362dcdfd73b7e11d78b04597f2d /update.sql | |
| parent | c359aa20cd0876e1e497aca1ff19e4c54287b6c2 (diff) | |
| parent | fd98101d073805fc42474a00bca640a618f99de6 (diff) | |
Merge pull request #27 from cenci0/master
Minor code refactoring and improvements
Diffstat (limited to 'update.sql')
| -rwxr-xr-x | update.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/update.sql b/update.sql new file mode 100755 index 0000000..ac4d548 --- /dev/null +++ b/update.sql @@ -0,0 +1,16 @@ +ALTER TABLE `accounts`
+CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL auto_increment;
+
+ALTER TABLE `files`
+CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL auto_increment,
+CHANGE COLUMN `orginalname` `originalname` varchar(255) NULL default NULL,
+CHANGE COLUMN `size` `size` int(10) NULL default NULL,
+CHANGE COLUMN `user` `user` int(10) NULL default '0';
+
+ALTER TABLE `invites`
+CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL auto_increment;
+
+ALTER TABLE `reports`
+CHANGE COLUMN `id` `id` int(10) unsigned NOT NULL auto_increment,
+CHANGE COLUMN `file` `file` varchar(255) NOT NULL,
+CHANGE COLUMN `reporter` `reporter` varchar(255) NOT NULL;
\ No newline at end of file |
