diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-05 15:45:16 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-05 15:45:16 -0700 |
commit | 23f03b18b7764505fd7f45d5b548ab8a38ce49f4 (patch) | |
tree | c8425912c628ce4c73c8cdb276063d874de7c0c2 /util/fixme.sql | |
parent | 9da61d34184aa31d52c7d5da37508f1ba3770f1a (diff) | |
download | volse-hubzilla-23f03b18b7764505fd7f45d5b548ab8a38ce49f4.tar.gz volse-hubzilla-23f03b18b7764505fd7f45d5b548ab8a38ce49f4.tar.bz2 volse-hubzilla-23f03b18b7764505fd7f45d5b548ab8a38ce49f4.zip |
script to update/repair installed db between Sep22-Oct6,2010
Diffstat (limited to 'util/fixme.sql')
-rw-r--r-- | util/fixme.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/fixme.sql b/util/fixme.sql new file mode 100644 index 000000000..91d8ad4ff --- /dev/null +++ b/util/fixme.sql @@ -0,0 +1,13 @@ +-- Run this with mysql or import into phpmyadmin if you installed mistpark between Sep22 and Oct 6 2010. +-- The database schema was missing some updates + +ALTER TABLE `item` DROP `like`, DROP `dislike` ; + +ALTER TABLE `item` ADD `verb` CHAR( 255 ) NOT NULL AFTER `body` , + ADD `object-type` CHAR( 255 ) NOT NULL AFTER `verb` , + ADD `object` TEXT NOT NULL AFTER `object-type` ; + +ALTER TABLE `intro` ADD `duplex` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `knowyou` ; +ALTER TABLE `contact` ADD `duplex` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `rel` ; +ALTER TABLE `contact` ADD `term-date` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `avatar-date`; + |