Keep track of the database schema version

The singleton table SchemaVersion contains the current version
of the Hydra database schema.  This can be used to upgrade the
schema on the fly.

Also reran the DBIx::Class schema loader.
This commit is contained in:
Eelco Dolstra
2011-12-05 14:29:29 +01:00
parent 3b9a62c964
commit 9032c55aa6
35 changed files with 1551 additions and 2187 deletions

View File

@ -1,3 +1,11 @@
-- Singleton table to keep track of the schema version.
create table SchemaVersion (
version integer not null
);
insert into SchemaVersion (version) values (1);
create table Users (
userName text primary key not null,
fullName text,