Skip to content

Commit

Permalink
We should have database update for SQLite too.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoant committed Jan 29, 2008
1 parent 86479a1 commit e8f2be4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/db-update.sqlite
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--
-- This updates jabberd2 sqlite databases created prior to 2.1.19.
--
-- sqlite3 jabberd2.db < db-setup.sqlite
--

ALTER TABLE "authreg" ADD COLUMN "token" TEXT;
ALTER TABLE "authreg" ADD COLUMN "sequence" INTEGER;
ALTER TABLE "authreg" ADD COLUMN "hash" TEXT;

ALTER TABLE "vcard" ADD COLUMN "jabberid" TEXT;
ALTER TABLE "vcard" ADD COLUMN "mailer" TEXT;
ALTER TABLE "vcard" ADD COLUMN "uid" TEXT;

ALTER TABLE "status" ADD COLUMN "xml" TEXT;

0 comments on commit e8f2be4

Please sign in to comment.