Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
-- Create carts table
DROP TABLE IF EXISTS adyen_sessions;
CREATE TABLE adyen_sessions (
id SERIAL PRIMARY KEY,
cart_id TEXT NOT NULL,
adyen_session_id TEXT,
content JSONB NOT NULL,
payment_complete_response TEXT,
authorisation_webhook TEXT,
status TEXT NOT NULL DEFAULT 'created',
order_id INTEGER REFERENCES orders(id),
inserted TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
updated TIMESTAMP WITH TIME ZONE
);
CREATE TRIGGER updated_timestamp BEFORE UPDATE ON adyen_sessions FOR EACH ROW EXECUTE FUNCTION updated_timestamp();
ALTER TABLE orders ADD COLUMN delivery_method_name TEXT DEFAULT NULL;