diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 3b20426..e2a9fee 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -108 +109 diff --git a/db/db.update.109.sql b/db/db.update.109.sql new file mode 100644 index 0000000..373f1ad --- /dev/null +++ b/db/db.update.109.sql @@ -0,0 +1,3 @@ +ALTER TABLE `pagetext` ADD `lang` VARCHAR( 2 ) DEFAULT 'en' NOT NULL ; +ALTER TABLE `pagetext` DROP INDEX `textname`; +ALTER TABLE pagetext ADD UNIQUE(`textname`,`year`,`lang`);