Minor improvements in migrations
parent
90f9f6acf0
commit
c4b0b3d2d0
|
@ -1,7 +1,7 @@
|
|||
--
|
||||
-- Create table for news
|
||||
--
|
||||
CREATE TABLE ponyFiction_newsitem (
|
||||
CREATE TABLE IF NOT EXISTS ponyFiction_newsitem (
|
||||
id INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
||||
title VARCHAR(255) NOT NULL,
|
||||
text LONGTEXT NOT NULL,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--
|
||||
-- Migrate new registrations
|
||||
--
|
||||
ALTER TABLE stories.registration_registrationprofile ADD activated BOOLEAN DEFAULT FALSE NOT NULL;
|
||||
ALTER TABLE registration_registrationprofile ADD activated BOOLEAN DEFAULT FALSE NOT NULL;
|
||||
UPDATE registration_registrationprofile SET activated = TRUE WHERE activation_key = 'ALREADY_ACTIVATED';
|
Loading…
Reference in New Issue