1
0
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:
Lukas Schulte Pelkum
2023-06-13 01:22:05 +02:00
parent 6260f20fc4
commit b9a6a81821
17 changed files with 265 additions and 8 deletions

View File

@ -1,5 +1,5 @@
begin;
drop table if exists "pastes";
drop table "pastes";
commit;

View File

@ -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,

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" rename column "modificationToken" to "deletionToken";
alter table "pastes" rename column "modificationToken" to "deletionToken";
commit;

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" rename column "deletionToken" to "modificationToken";
alter table "pastes" rename column "deletionToken" to "modificationToken";
commit;

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" drop column "metadata";
alter table "pastes" drop column "metadata";
commit;

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" add column "metadata" jsonb;
alter table "pastes" add column "metadata" jsonb;
commit;

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" add column "autoDelete" boolean;
alter table "pastes" add column "autoDelete" boolean;
commit;

View File

@ -1,5 +1,5 @@
begin;
alter table if exists "pastes" drop column "autoDelete";
alter table "pastes" drop column "autoDelete";
commit;