mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
implement SQLite storage driver
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
drop table if exists "pastes";
|
||||
drop table "pastes";
|
||||
|
||||
commit;
|
@ -1,6 +1,6 @@
|
||||
begin;
|
||||
|
||||
create table if not exists "pastes" (
|
||||
create table "pastes" (
|
||||
"id" text not null,
|
||||
"content" text not null,
|
||||
"deletionToken" text not null,
|
||||
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" rename column "modificationToken" to "deletionToken";
|
||||
alter table "pastes" rename column "modificationToken" to "deletionToken";
|
||||
|
||||
commit;
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" rename column "deletionToken" to "modificationToken";
|
||||
alter table "pastes" rename column "deletionToken" to "modificationToken";
|
||||
|
||||
commit;
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" drop column "metadata";
|
||||
alter table "pastes" drop column "metadata";
|
||||
|
||||
commit;
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" add column "metadata" jsonb;
|
||||
alter table "pastes" add column "metadata" jsonb;
|
||||
|
||||
commit;
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" add column "autoDelete" boolean;
|
||||
alter table "pastes" add column "autoDelete" boolean;
|
||||
|
||||
commit;
|
@ -1,5 +1,5 @@
|
||||
begin;
|
||||
|
||||
alter table if exists "pastes" drop column "autoDelete";
|
||||
alter table "pastes" drop column "autoDelete";
|
||||
|
||||
commit;
|
Reference in New Issue
Block a user