You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
275 B
MySQL
15 lines
275 B
MySQL
2 years ago
|
-- drop constraints from votes table
|
||
|
CREATE TABLE emails_new
|
||
|
(
|
||
|
voter INT4,
|
||
|
address VARCHAR(255)
|
||
|
);
|
||
|
|
||
|
INSERT INTO emails_new (voter, address)
|
||
|
SELECT voter, address
|
||
|
FROM emails;
|
||
|
|
||
|
DROP TABLE emails;
|
||
|
ALTER TABLE emails_new
|
||
|
RENAME TO emails;
|
||
|
DROP TABLE emails_backup;
|