Skip to content

Commit 57f1ef0

Browse files
authored
Merge pull request #458 from cybertec-postgresql/457-fix-migrate_v3_to_v4
[-] add `timetable.migration` table to `migrate_v3_to_v4.sql` script, fixes #457
2 parents ff1a899 + 2f2fcf1 commit 57f1ef0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

extras/migrate_v3_to_v4.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ ALTER SCHEMA timetable RENAME TO timetable_v3;
1010
-- create the v4 initial schema
1111
CREATE SCHEMA timetable;
1212

13+
CREATE TABLE timetable.migration(
14+
id INT8 NOT NULL,
15+
version TEXT NOT NULL,
16+
PRIMARY KEY (id)
17+
);
18+
19+
INSERT INTO
20+
timetable.migration (id, version)
21+
VALUES
22+
(0, '00259 Restart migrations for v4');
23+
1324
CREATE TYPE timetable.command_kind AS ENUM ('SQL', 'PROGRAM', 'BUILTIN');
1425

1526
CREATE TABLE timetable.task (

0 commit comments

Comments
 (0)