IDs of data contained in migration are now hard set
This commit is contained in:
parent
99610305b6
commit
a0c207b46b
@ -56,17 +56,17 @@ CREATE TABLE booru.member_roles
|
||||
CONSTRAINT member FOREIGN KEY (member_id) REFERENCES booru.member (id)
|
||||
);
|
||||
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.member_id_seq START WITH 1 INCREMENT BY 1;
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.member_id_seq START WITH 2 INCREMENT BY 1;
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.image_id_seq START WITH 1 INCREMENT BY 1;
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.role_id_seq START WITH 1 INCREMENT BY 1;
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.role_id_seq START WITH 3 INCREMENT BY 1;
|
||||
CREATE SEQUENCE IF NOT EXISTS booru.tag_id_seq START WITH 1 INCREMENT BY 1;
|
||||
|
||||
-- Populate default values
|
||||
INSERT INTO booru.role (name)
|
||||
VALUES ('ADMIN'),
|
||||
('USER');
|
||||
INSERT INTO booru.member (name, email, password, enabled)
|
||||
VALUES ('root', 'root@example.org', '$2a$10$XiMxQ1Qe.AprOdJKUPum6O2URy2b4ogffujVZVpUT8CJPksfSyNZK', TRUE);
|
||||
INSERT INTO booru.role (id, name)
|
||||
VALUES (1, 'ADMIN'),
|
||||
(2, 'USER');
|
||||
INSERT INTO booru.member (id, name, email, password, enabled)
|
||||
VALUES (1, 'root', 'root@example.org', '$2a$10$XiMxQ1Qe.AprOdJKUPum6O2URy2b4ogffujVZVpUT8CJPksfSyNZK', TRUE);
|
||||
INSERT INTO booru.member_roles (member_id, role_id)
|
||||
VALUES (1, 1),
|
||||
(1, 2);
|
Loading…
Reference in New Issue
Block a user