When we develop on different branches, will cause migrate sql lost when merge.
This because of the sql:
Query: CREATE SCHEMA IF NOT EXISTS "drizzle"
Query:
CREATE TABLE IF NOT EXISTS "drizzle"."__drizzle_migrations" (
id SERIAL PRIMARY KEY,
hash text NOT NULL,
created_at bigint
)
Query: select id, hash, created_at from "drizzle"."__drizzle_migrations" order by created_at desc limit 1
Query: begin
Query: commit
When I generate migrate sql on different branches, will cause conflict. See the final result:
So if 0004_even_cyclops.sql first migrate, then merge branch with file 0004_bumpy_katie_power.sql, will cause 0004_bumpy_katie_power.sql never execute, this because the sql of migrate:
select id, hash, created_at from "drizzle"."__drizzle_migrations" order by created_at desc limit 1
I hope you can support multiple branches development. Thanks.
Describe what you want
When we develop on different branches, will cause migrate sql lost when merge.
This because of the sql:
When I generate migrate sql on different branches, will cause conflict. See the final result:
You can see there're 2
0004_
sqls here.So if
0004_even_cyclops.sql
first migrate, then merge branch with file0004_bumpy_katie_power.sql
, will cause0004_bumpy_katie_power.sql
never execute, this because the sql of migrate:I hope you can support multiple branches development. Thanks.