2021-02-10 09:12:42 +01:00
|
|
|
-- This file should undo anything in `up.sql`
|
|
|
|
|
2021-02-14 22:28:34 +01:00
|
|
|
CREATE TABLE usersold
|
|
|
|
(
|
|
|
|
id INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
username VARCHAR NOT NULL,
|
|
|
|
email VARCHAR NOT NULL,
|
|
|
|
password VARCHAR NOT NULL,
|
|
|
|
|
|
|
|
UNIQUE(username, email)
|
|
|
|
);
|
|
|
|
|
|
|
|
INSERT INTO usersold
|
|
|
|
SELECT id,username,email,password
|
|
|
|
FROM users;
|
|
|
|
DROP TABLE users;
|
|
|
|
|
|
|
|
ALTER TABLE usersold
|
|
|
|
RENAME TO users;
|
|
|
|
|