@@ -80,7 +80,6 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -80,7 +80,6 @@ public class BootstrapBean implements BootstrapBeanLocal {
"alter table compos add hidden boolean default false not null"
"alter table compos add hidden boolean default false not null"
});
});
dbUpdates.add(alterTables("ADD COLUMN meta json",
dbUpdates.add(alterTables("ADD COLUMN meta json",
"account_events",
"account_events",
"actionlog_message_responses",
"actionlog_message_responses",
...
@@ -152,6 +151,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -152,6 +151,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
"user_notes",
"user_notes",
"users"));
"users"));
dbUpdates.add(newString[]{"CREATE TABLE network_associations (id SERIAL NOT NULL, create_time TIMESTAMPTZ NOT NULL, ip TEXT, mac TEXT, meta TEXT, modify_time TIMESTAMPTZ NOT NULL, status TEXT NOT NULL, event INTEGER, event_user INTEGER, place INTEGER, PRIMARY KEY (id))"});
dbUpdates.add(newString[]{"CREATE TABLE network_associations (id SERIAL NOT NULL, create_time TIMESTAMPTZ NOT NULL, ip TEXT, mac TEXT, meta TEXT, modify_time TIMESTAMPTZ NOT NULL, status TEXT NOT NULL, event INTEGER, event_user INTEGER, place INTEGER, PRIMARY KEY (id))"});
dbUpdates.add(newString[]{
dbUpdates.add(newString[]{
...
@@ -189,6 +189,17 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -189,6 +189,17 @@ public class BootstrapBean implements BootstrapBeanLocal {
dbUpdates.add(newString[]{
dbUpdates.add(newString[]{
"ALTER TABLE network_associations ALTER COLUMN meta TYPE json USING (meta::json);"
"ALTER TABLE network_associations ALTER COLUMN meta TYPE json USING (meta::json);"
});
});
dbUpdates.add(newString[]{"CREATE TABLE lecture_groups (id SERIAL NOT NULL, description TEXT, name TEXT, select_count INTEGER, PRIMARY KEY (id))",
"CREATE TABLE lectures (id SERIAL NOT NULL, description TEXT, end_time TIMESTAMPTZ, max_participants_count INTEGER, name TEXT, start_time TIMESTAMPTZ, lecture_group_id INTEGER, PRIMARY KEY (id))",
"CREATE TABLE lecture_roles (role_id INTEGER NOT NULL, lecture_id INTEGER NOT NULL, PRIMARY KEY (role_id, lecture_id))",
"CREATE TABLE lecture_participants (eventuser_id INTEGER NOT NULL, lecture_id INTEGER NOT NULL, PRIMARY KEY (eventuser_id, lecture_id))",