Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions mysql/db/33_teachers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ CREATE TABLE
name varchar(255) not null,
position varchar(255) not null,
department_id int(10),
room varchar(255),
is_black boolean,
remark varchar(255),
is_deleted boolean default false,
created_at datetime not null default current_timestamp,
updated_at datetime not null default current_timestamp on update current_timestamp,
PRIMARY KEY (id)
);

INSERT INTO
teachers (name, position, department_id, room, is_black, remark)
VALUES
('test-name', 'test-position', 1, '605', false, 'test-remark'),
('test-teacher', 'test-position2', 1, '605', false, 'test-remark');
244 changes: 0 additions & 244 deletions mysql/db/34_teachers_seed.sql

This file was deleted.

28 changes: 0 additions & 28 deletions mysql/db/38_buildings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,3 @@ CREATE TABLE
updated_at datetime not null default current_timestamp on update current_timestamp,
PRIMARY KEY (id)
);

INSERT INTO
buildings (name)
VALUES
('機械・建設棟'),
('電気棟'),
('生物棟'),
('環境・システム棟'),
('物質・材料経営情報棟'),
('総合研究棟'),
('原子力・システム安全棟'),
('事務局棟'),
('極限エネルギ密度工学研究センター'),
('工作センター'),
('大型実験棟'),
('分析計測センター'),
('その他');

-- INSERT INTO buildings (name) VALUES ('実験実習棟');
-- INSERT INTO buildings (name) VALUES ('博士棟');
-- INSERT INTO buildings (name) VALUES ('ラジオアイソトープセンター');
-- INSERT INTO buildings (name) VALUES ('体育保健センター');
-- INSERT INTO buildings (name) VALUES ('語学センター');
-- INSERT INTO buildings (name) VALUES ('情報処理センター');
-- INSERT INTO buildings (name) VALUES ('マルチメディアセンター');
-- INSERT INTO buildings (name) VALUES ('GX棟');
-- INSERT INTO buildings (name) VALUES ('学長室');
-- INSERT INTO buildings (name) VALUES ('理事室');
20 changes: 0 additions & 20 deletions mysql/db/39_building_units.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,3 @@ CREATE TABLE
FOREIGN KEY (building_id) REFERENCES buildings (id)
);

INSERT INTO
building_units (building_id, unit_number)
VALUES
(1, "1号棟"),
(1, "2号棟"),
(1, "3号棟"),
(2, "1号棟"),
(2, "2号棟"),
(3, "1号棟"),
(4, "1号棟"),
(5, "1号棟"),
(5, "2号棟"),
(6, "1号棟"),
(7, "1号棟"),
(8, "1号棟"),
(9, "1号棟"),
(10, "1号棟"),
(11, "1号棟"),
(12, "1号棟"),
(13, "1号棟");
5 changes: 0 additions & 5 deletions mysql/db/40_floors.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ CREATE TABLE
PRIMARY KEY (id),
FOREIGN KEY (building_unit_id) REFERENCES building_units (id)
);

INSERT INTO
floors (id, building_unit_id, floor_number)
VALUES
(1, 1, "1F");
5 changes: 0 additions & 5 deletions mysql/db/41_rooms.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ CREATE TABLE
PRIMARY KEY (id),
FOREIGN KEY (floor_id) REFERENCES floors (id)
);

INSERT INTO
rooms (floor_id, room_name)
VALUES
(1, 'test部屋')
5 changes: 0 additions & 5 deletions mysql/db/42_room_teachers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ CREATE TABLE
FOREIGN KEY (room_id) REFERENCES rooms (id) ON DELETE CASCADE,
FOREIGN KEY (teacher_id) REFERENCES teachers (id) ON DELETE CASCADE
);

INSERT INTO
room_teachers (room_id, teacher_id)
VALUES
(1, 1)
Loading
Loading