added go-migrate Migrations
This commit is contained in:
16
migrations/20250802075213_control_tables.up.sql
Normal file
16
migrations/20250802075213_control_tables.up.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- modify "anwesenheit" table
|
||||
ALTER TABLE "anwesenheit" ADD COLUMN "manuelle_buchung" boolean NULL;
|
||||
-- create "s_abwesenheit_typen" table
|
||||
CREATE TABLE "s_abwesenheit_typen" (
|
||||
"abwesenheit_id" smallint NOT NULL,
|
||||
"abwesenheit_name" character varying(255) NULL,
|
||||
PRIMARY KEY ("abwesenheit_id")
|
||||
);
|
||||
-- create "s_anwesenheit_typen" table
|
||||
CREATE TABLE "s_anwesenheit_typen" (
|
||||
"anwesenheit_id" smallint NOT NULL,
|
||||
"anwesenheit_name" character varying(255) NULL,
|
||||
PRIMARY KEY ("anwesenheit_id")
|
||||
);
|
||||
-- create "s_personal_daten" table
|
||||
ALTER TABLE "personal_daten" RENAME TO "s_personal_daten";
|
||||
Reference in New Issue
Block a user