Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45a5d1f8
authored
May 24, 2014
by
Tuukka Kivilahti
Committed by
Tuukka Kivilahti
Jun 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database, first version
1 parent
3cfd73d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
View file @
45a5d1f
...
@@ -183,14 +183,15 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -183,14 +183,15 @@ public class BootstrapBean implements BootstrapBeanLocal {
"ALTER TABLE card_text_data DROP COLUMN font_style;"
,
"ALTER TABLE card_text_data DROP COLUMN font_style;"
,
"ALTER TABLE card_text_data ADD COLUMN font_style TEXT NOT NULL DEFAULT 'PLAIN';"
"ALTER TABLE card_text_data ADD COLUMN font_style TEXT NOT NULL DEFAULT 'PLAIN';"
});
});
dbUpdates
.
add
(
new
String
[]
{
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE event_log RENAME log_id TO id;"
"ALTER TABLE event_log RENAME log_id TO id;"
});
});
dbUpdates
.
add
(
new
String
[]
{
dbUpdates
.
add
(
new
String
[]
{
"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
(
new
String
[]
{
"CREATE TABLE lecture_groups (id SERIAL NOT NULL, description TEXT, name TEXT, select_count INTEGER, PRIMARY KEY (id))"
,
dbUpdates
.
add
(
new
String
[]
{
"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 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_roles (role_id INTEGER NOT NULL, lecture_id INTEGER NOT NULL, PRIMARY KEY (role_id, lecture_id))"
,
...
@@ -200,6 +201,8 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -200,6 +201,8 @@ public class BootstrapBean implements BootstrapBeanLocal {
"ALTER TABLE lecture_roles ADD CONSTRAINT FK_lecture_roles_role_id FOREIGN KEY (role_id) REFERENCES roles (id)"
,
"ALTER TABLE lecture_roles ADD CONSTRAINT FK_lecture_roles_role_id FOREIGN KEY (role_id) REFERENCES roles (id)"
,
"ALTER TABLE lecture_participants ADD CONSTRAINT FK_lecture_participants_eventuser_id FOREIGN KEY (eventuser_id) REFERENCES event_users (id)"
,
"ALTER TABLE lecture_participants ADD CONSTRAINT FK_lecture_participants_eventuser_id FOREIGN KEY (eventuser_id) REFERENCES event_users (id)"
,
"ALTER TABLE lecture_participants ADD CONSTRAINT FK_lecture_participants_lecture_id FOREIGN KEY (lecture_id) REFERENCES lectures (id)"
});
"ALTER TABLE lecture_participants ADD CONSTRAINT FK_lecture_participants_lecture_id FOREIGN KEY (lecture_id) REFERENCES lectures (id)"
});
}
}
@EJB
@EJB
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment