mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 10:35:41 -04:00
Migration scripts since the DB on my laptop will never get commited
This commit is contained in:
parent
db4520f3a8
commit
738883b852
2 changed files with 21 additions and 0 deletions
20
sql/drop-soundex.sql
Normal file
20
sql/drop-soundex.sql
Normal file
|
@ -0,0 +1,20 @@
|
|||
BEGIN TRANSACTION;
|
||||
CREATE TABLE factoid_new (
|
||||
factoid_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
original_subject VARCHAR(100),
|
||||
subject VARCHAR(100),
|
||||
copula VARCHAR(25),
|
||||
predicate TEXT,
|
||||
author VARCHAR(100),
|
||||
modified_time INTEGER,
|
||||
metaphone TEXT,
|
||||
compose_macro CHAR(1) DEFAULT '0',
|
||||
protected BOOLEAN DEFAULT '0'
|
||||
);
|
||||
|
||||
INSERT INTO factoid_new SELECT factoid_id, original_subject, subject, copula, predicate, author, modified_time, metaphone, compose_macro, protected FROM factoid;
|
||||
DROP TABLE factoid;
|
||||
ALTER TABLE factoid_new RENAME TO factoid;
|
||||
COMMIT;
|
||||
|
||||
|
1
sql/metaphone.sql
Normal file
1
sql/metaphone.sql
Normal file
|
@ -0,0 +1 @@
|
|||
ALTER TABLE factoid ADD COLUMN metaphone TEXT;
|
Loading…
Add table
Reference in a new issue