Skip to content

Commit

Permalink
Respect auto_index keys in crdb (#99)
Browse files Browse the repository at this point in the history
This patch reverts a behavior introduced earlier and adds a test to prevent future regressions. With this patch, it is possible to use `change_column` on columns with foreign key references but without explicitly defined indices. Without this patch, those changes fail because CRDB needs an index on the referencing column when creating foreign key checks.

Closes #98
  • Loading branch information
aeneasr committed Nov 4, 2020
1 parent eec5de9 commit 3416f0e
Show file tree
Hide file tree
Showing 63 changed files with 1,714 additions and 167 deletions.
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/10.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CREATE TABLE e2e_user_posts (
user_id UUID NOT NULL,
slug VARCHAR(64) NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, content, user_id, slug)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/11.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
user_id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
FAMILY "primary" (id, content, slug, user_id)
);
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/12.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
user_id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
FAMILY "primary" (id, content, slug, user_id)
);
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/13.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
author_id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, author_id)
);
Expand Down
31 changes: 31 additions & 0 deletions internal/e2e/fixtures/cockroach/down/14.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CREATE TABLE e2e_authors (
id UUID NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id, created_at, updated_at)
);

CREATE TABLE e2e_user_posts (
id UUID NOT NULL,
content VARCHAR(255) NOT NULL DEFAULT '':::STRING,
slug VARCHAR(32) NOT NULL,
published BOOL NOT NULL DEFAULT false,
author_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, published, author_id)
);

CREATE TABLE schema_migration (
version VARCHAR(14) NOT NULL,
UNIQUE INDEX schema_migration_version_idx (version ASC),
FAMILY "primary" (version, rowid)
);

ALTER TABLE e2e_user_posts ADD CONSTRAINT e2e_user_notes_e2e_users_id_fk FOREIGN KEY (author_id) REFERENCES e2e_authors(id) ON DELETE CASCADE;

-- Validate foreign key constraints. These can fail if there was unvalidated data during the dump.
ALTER TABLE e2e_user_posts VALIDATE CONSTRAINT e2e_user_notes_e2e_users_id_fk;
62 changes: 62 additions & 0 deletions internal/e2e/fixtures/cockroach/down/15.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
CREATE TABLE e2e_address (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_authors (
id UUID NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id, created_at, updated_at)
);

CREATE TABLE e2e_flow (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_token (
id UUID NOT NULL,
token VARCHAR(64) NOT NULL,
e2e_address_id UUID NOT NULL,
expires_at TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00+00:00':::TIMESTAMP,
issued_at TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00+00:00':::TIMESTAMP,
e2e_flow_id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_address_id_fk (e2e_address_id ASC),
UNIQUE INDEX e2e_token_uq_idx (token ASC),
INDEX e2e_token_idx (token ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_flow_id_fk (e2e_flow_id ASC),
FAMILY "primary" (id, token, e2e_address_id, expires_at, issued_at, e2e_flow_id)
);

CREATE TABLE e2e_user_posts (
id UUID NOT NULL,
content VARCHAR(255) NOT NULL DEFAULT '':::STRING,
slug VARCHAR(32) NOT NULL,
published BOOL NOT NULL DEFAULT false,
author_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, published, author_id)
);

CREATE TABLE schema_migration (
version VARCHAR(14) NOT NULL,
UNIQUE INDEX schema_migration_version_idx (version ASC),
FAMILY "primary" (version, rowid)
);

ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_address_id_fk FOREIGN KEY (e2e_address_id) REFERENCES e2e_address(id) ON DELETE CASCADE;
ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_flow_id_fk FOREIGN KEY (e2e_flow_id) REFERENCES e2e_flow(id) ON DELETE CASCADE;
ALTER TABLE e2e_user_posts ADD CONSTRAINT e2e_user_notes_e2e_users_id_fk FOREIGN KEY (author_id) REFERENCES e2e_authors(id) ON DELETE CASCADE;

-- Validate foreign key constraints. These can fail if there was unvalidated data during the dump.
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_address_id_fk;
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_flow_id_fk;
ALTER TABLE e2e_user_posts VALIDATE CONSTRAINT e2e_user_notes_e2e_users_id_fk;
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_notes (
notes VARCHAR(255) NULL,
title VARCHAR(64) NOT NULL DEFAULT '':::STRING,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
INDEX e2e_user_notes_title_idx (title ASC),
FAMILY "primary" (id, user_id, notes, title)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CREATE TABLE e2e_user_notes (
user_id UUID NOT NULL,
notes VARCHAR(255) NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
FAMILY "primary" (id, user_id, notes)
);
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_notes (
slug VARCHAR(64) NOT NULL,
notes VARCHAR(255) NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, user_id, slug, notes)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_notes (
slug VARCHAR(64) NOT NULL,
notes VARCHAR(255) NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, user_id, slug, notes)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/6.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_notes (
slug VARCHAR(64) NOT NULL,
notes VARCHAR(255) NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, user_id, slug, notes)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/7.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
slug VARCHAR(64) NOT NULL,
notes VARCHAR(255) NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, user_id, slug, notes)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
user_id UUID NOT NULL,
slug VARCHAR(64) NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, content, user_id, slug)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/down/9.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE e2e_user_posts (
user_id UUID NOT NULL,
slug VARCHAR(64) NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (user_id ASC),
INDEX e2e_user_notes_user_id_idx (user_id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
FAMILY "primary" (id, content, user_id, slug)
Expand Down
1 change: 1 addition & 0 deletions internal/e2e/fixtures/cockroach/up/13.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CREATE TABLE e2e_user_posts (
author_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, published, author_id)
);
Expand Down
60 changes: 60 additions & 0 deletions internal/e2e/fixtures/cockroach/up/14.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
CREATE TABLE e2e_address (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_authors (
id UUID NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id, created_at, updated_at)
);

CREATE TABLE e2e_flow (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_token (
id UUID NOT NULL,
token VARCHAR(64) NOT NULL,
e2e_flow_id UUID NOT NULL,
e2e_address_id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_flow_id_fk (e2e_flow_id ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_address_id_fk (e2e_address_id ASC),
UNIQUE INDEX e2e_token_uq_idx (token ASC),
INDEX e2e_token_idx (token ASC),
FAMILY "primary" (id, token, e2e_flow_id, e2e_address_id)
);

CREATE TABLE e2e_user_posts (
id UUID NOT NULL,
content VARCHAR(255) NOT NULL DEFAULT '':::STRING,
slug VARCHAR(32) NOT NULL,
published BOOL NOT NULL DEFAULT false,
author_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, published, author_id)
);

CREATE TABLE schema_migration (
version VARCHAR(14) NOT NULL,
UNIQUE INDEX schema_migration_version_idx (version ASC),
FAMILY "primary" (version, rowid)
);

ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_flow_id_fk FOREIGN KEY (e2e_flow_id) REFERENCES e2e_flow(id) ON DELETE CASCADE;
ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_address_id_fk FOREIGN KEY (e2e_address_id) REFERENCES e2e_address(id) ON DELETE CASCADE;
ALTER TABLE e2e_user_posts ADD CONSTRAINT e2e_user_notes_e2e_users_id_fk FOREIGN KEY (author_id) REFERENCES e2e_authors(id) ON DELETE CASCADE;

-- Validate foreign key constraints. These can fail if there was unvalidated data during the dump.
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_flow_id_fk;
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_address_id_fk;
ALTER TABLE e2e_user_posts VALIDATE CONSTRAINT e2e_user_notes_e2e_users_id_fk;
62 changes: 62 additions & 0 deletions internal/e2e/fixtures/cockroach/up/15.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
CREATE TABLE e2e_address (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_authors (
id UUID NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id, created_at, updated_at)
);

CREATE TABLE e2e_flow (
id UUID NOT NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
FAMILY "primary" (id)
);

CREATE TABLE e2e_token (
id UUID NOT NULL,
token VARCHAR(64) NOT NULL,
e2e_address_id UUID NOT NULL,
expires_at TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00+00:00':::TIMESTAMP,
issued_at TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00+00:00':::TIMESTAMP,
e2e_flow_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_address_id_fk (e2e_address_id ASC),
UNIQUE INDEX e2e_token_uq_idx (token ASC),
INDEX e2e_token_idx (token ASC),
INDEX e2e_token_auto_index_e2e_token_e2e_flow_id_fk (e2e_flow_id ASC),
FAMILY "primary" (id, token, e2e_address_id, expires_at, issued_at, e2e_flow_id)
);

CREATE TABLE e2e_user_posts (
id UUID NOT NULL,
content VARCHAR(255) NOT NULL DEFAULT '':::STRING,
slug VARCHAR(32) NOT NULL,
published BOOL NOT NULL DEFAULT false,
author_id UUID NULL,
CONSTRAINT "primary" PRIMARY KEY (id ASC),
UNIQUE INDEX e2e_user_notes_slug_idx (slug ASC),
INDEX e2e_user_notes_auto_index_e2e_user_notes_e2e_users_id_fk (author_id ASC),
INDEX e2e_user_notes_user_id_idx (author_id ASC),
FAMILY "primary" (id, content, slug, published, author_id)
);

CREATE TABLE schema_migration (
version VARCHAR(14) NOT NULL,
UNIQUE INDEX schema_migration_version_idx (version ASC),
FAMILY "primary" (version, rowid)
);

ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_address_id_fk FOREIGN KEY (e2e_address_id) REFERENCES e2e_address(id) ON DELETE CASCADE;
ALTER TABLE e2e_token ADD CONSTRAINT e2e_token_e2e_flow_id_fk FOREIGN KEY (e2e_flow_id) REFERENCES e2e_flow(id) ON DELETE CASCADE;
ALTER TABLE e2e_user_posts ADD CONSTRAINT e2e_user_notes_e2e_users_id_fk FOREIGN KEY (author_id) REFERENCES e2e_authors(id) ON DELETE CASCADE;

-- Validate foreign key constraints. These can fail if there was unvalidated data during the dump.
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_address_id_fk;
ALTER TABLE e2e_token VALIDATE CONSTRAINT e2e_token_e2e_flow_id_fk;
ALTER TABLE e2e_user_posts VALIDATE CONSTRAINT e2e_user_notes_e2e_users_id_fk;
8 changes: 4 additions & 4 deletions internal/e2e/fixtures/mysql/down/0.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- MySQL dump 10.13 Distrib 5.7.29, for macos10.14 (x86_64)
-- MySQL dump 10.13 Distrib 8.0.21, for osx10.15 (x86_64)
--
-- Host: 127.0.0.1 Database: pop_test
-- ------------------------------------------------------
Expand All @@ -7,7 +7,7 @@
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
Expand All @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `schema_migration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `schema_migration` (
`version` varchar(14) NOT NULL,
UNIQUE KEY `schema_migration_version_idx` (`version`)
Expand All @@ -37,4 +37,4 @@ CREATE TABLE `schema_migration` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2020-08-30 23:11:40
-- Dump completed on 2020-09-03 11:40:22
10 changes: 5 additions & 5 deletions internal/e2e/fixtures/mysql/down/1.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- MySQL dump 10.13 Distrib 5.7.29, for macos10.14 (x86_64)
-- MySQL dump 10.13 Distrib 8.0.21, for osx10.15 (x86_64)
--
-- Host: 127.0.0.1 Database: pop_test
-- ------------------------------------------------------
Expand All @@ -7,7 +7,7 @@
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
Expand All @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `e2e_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `e2e_users` (
`id` char(36) NOT NULL,
`created_at` datetime NOT NULL,
Expand All @@ -37,7 +37,7 @@ CREATE TABLE `e2e_users` (

DROP TABLE IF EXISTS `schema_migration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `schema_migration` (
`version` varchar(14) NOT NULL,
UNIQUE KEY `schema_migration_version_idx` (`version`)
Expand All @@ -53,4 +53,4 @@ CREATE TABLE `schema_migration` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2020-08-30 23:11:40
-- Dump completed on 2020-09-03 11:40:22

0 comments on commit 3416f0e

Please sign in to comment.