diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-16 13:56:56 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-16 13:56:56 +0100 |
commit | d6264b5ca8a0192c02bb3aff676fd8aebe87c29e (patch) | |
tree | 2dd10ce0ec04f8bfea11bf312252d4b0d3360e24 /migrate.pl | |
parent | 532fadabb45cdf7e70f877eaf2de4d476c7dc1d2 (diff) |
Add JSON API
Diffstat (limited to 'migrate.pl')
-rwxr-xr-x | migrate.pl | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -174,6 +174,27 @@ my @migrations = ( ); $dbh->commit; }, + + # v2 -> v3 + sub { + $dbh->begin_work; + $dbh->do( + qq{ + update schema_version set version = 3; + } + ); + $dbh->do( + qq{ + create table tokens ( + user_id integer not null, + type integer not null, + token char(80) not null, + primary key (user_id, type) + ); + } + ); + $dbh->commit; + }, ); my $schema_version = get_schema_version(); |