diff --git a/db/migrations/20231222134745_create_pastes.sql b/db/migrations/20231222134745_create_pastes.sql index 2805750..64cb9ee 100644 --- a/db/migrations/20231222134745_create_pastes.sql +++ b/db/migrations/20231222134745_create_pastes.sql @@ -1,7 +1,7 @@ -- +micrate Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS pastes ( - id BIGSERIAL PRIMARY KEY, + id INTEGER NOT NULL PRIMARY KEY, sha256 TEXT UNIQUE NOT NULL, ext TEXT NOT NULL, mime TEXT NOT NULL, @@ -21,4 +21,4 @@ CREATE TABLE IF NOT EXISTS pastes ( -- +micrate Down -- SQL section 'Down' is executed when this migration is rolled back -DROP TABLE IF EXISTS pastes; \ No newline at end of file +DROP TABLE IF EXISTS pastes;