Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
schema_class Succession::Schema | ||
|
||
<connect_info> | ||
dsn dbi:mysql:succession | ||
user succession | ||
pass 5ucc35510n | ||
</connect_info> | ||
|
||
<loader_options> | ||
dump_directory ./lib | ||
components InflateColumn::DateTime | ||
use_moose 1 | ||
</loader_options> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
drop table if exists person; | ||
|
||
create table person ( | ||
id integer primary key auto_increment, | ||
name varchar(50) not null, | ||
born date not null, | ||
died date, | ||
parent integer null, | ||
family_order integer, | ||
foreign key (parent) references person(id) | ||
); | ||
|
||
drop table if exists sovereign; | ||
|
||
create table sovereign ( | ||
id integer primary key auto_increment, | ||
start date not null, | ||
end date, | ||
person_id integer not null, | ||
foreign key (person_id) references person(id) | ||
); |