diff --git a/db/db.code.version.txt b/db/db.code.version.txt index c8b255f..7296f25 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -135 +136 diff --git a/db/db.update.136.php b/db/db.update.136.php new file mode 100644 index 0000000..d65c9f9 --- /dev/null +++ b/db/db.update.136.php @@ -0,0 +1,34 @@ + diff --git a/db/db.update.136.sql b/db/db.update.136.sql new file mode 100644 index 0000000..391d636 --- /dev/null +++ b/db/db.update.136.sql @@ -0,0 +1,4 @@ +ALTER TABLE `fairs` CHANGE `type` `type` ENUM( 'feeder', 'sfiab', 'ysc' ) NOT NULL ; + +UPDATE fairs SET `type`='ysc' WHERE `type`=''; +