You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tk.MustExec("CREATE TABLE authors (id INT PRIMARY KEY AUTO_INCREMENT,name VARCHAR(100) NOT NULL,email VARCHAR(100) UNIQUE NOT NULL);")
205
+
tk.MustExec("CREATE TABLE books (id INT PRIMARY KEY AUTO_INCREMENT,title VARCHAR(200) NOT NULL,publication_date DATE NOT NULL,author_id INT,FOREIGN KEY (author_id) REFERENCES authors(id) ON DELETE CASCADE);")
204
206
err=h.HandleDDLEvent(<-h.DDLEventCh())
205
207
require.NoError(t, err)
206
208
tk.MustExec("insert into t values(1), (2), (3), (4)")
@@ -306,7 +308,7 @@ func prepareServerAndClientForTest(t *testing.T, store kv.Storage, dom *domain.D
0 commit comments