mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
feat: github & google login
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TRIGGER urls_update_at_trigger;
|
||||
DROP TRIGGER IF EXISTS urls_update_at_trigger;
|
||||
|
||||
DROP TABLE urls;
|
||||
|
||||
@@ -3,7 +3,7 @@ CREATE TABLE urls (
|
||||
url TEXT PRIMARY KEY NOT NULL,
|
||||
destination_url TEXT NOT NULL,
|
||||
ttl DATETIME,
|
||||
owned_by TEXT,
|
||||
owned_by TEXT NOT NULL CHECK (owned_by = owned_by),
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user