use transaction for migration
This commit is contained in:
@@ -1,2 +1,6 @@
|
|||||||
|
BEGIN;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS network_subscriptions;
|
DROP TABLE IF EXISTS network_subscriptions;
|
||||||
DROP TABLE IF EXISTS network_stripe_customers;
|
DROP TABLE IF EXISTS network_stripe_customers;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
BEGIN;
|
||||||
|
|
||||||
CREATE TABLE network_stripe_customers (
|
CREATE TABLE network_stripe_customers (
|
||||||
network_id TEXT PRIMARY KEY,
|
network_id TEXT PRIMARY KEY,
|
||||||
stripe_customer_id TEXT NOT NULL UNIQUE,
|
stripe_customer_id TEXT NOT NULL UNIQUE,
|
||||||
@@ -22,3 +24,5 @@ CREATE TABLE network_subscriptions (
|
|||||||
|
|
||||||
CREATE UNIQUE INDEX idx_network_subscriptions_network_id
|
CREATE UNIQUE INDEX idx_network_subscriptions_network_id
|
||||||
ON network_subscriptions (network_id);
|
ON network_subscriptions (network_id);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user