]> git.mxchange.org Git - friendica.git/commitdiff
script to update/repair installed db between Sep22-Oct6,2010
authorMike Macgirvin <mike@macgirvin.com>
Tue, 5 Oct 2010 22:45:16 +0000 (15:45 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Tue, 5 Oct 2010 22:45:16 +0000 (15:45 -0700)
util/fixme.sql [new file with mode: 0644]

diff --git a/util/fixme.sql b/util/fixme.sql
new file mode 100644 (file)
index 0000000..91d8ad4
--- /dev/null
@@ -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`;
+