Skip to content

Commit

Permalink
Added name to actor_role table. Regenerated stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Cross committed Oct 2, 2015
1 parent 8881026 commit 79728b8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 10 additions & 2 deletions Literature/lib/Literature/Schema/Result/ActorRole.pm
Expand Up @@ -56,6 +56,12 @@ __PACKAGE__->table("actor_role");
is_foreign_key: 1
is_nullable: 0
=head2 name
data_type: 'varchar'
is_nullable: 1
size: 100
=cut

__PACKAGE__->add_columns(
Expand All @@ -65,6 +71,8 @@ __PACKAGE__->add_columns(
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"fictional_character",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"name",
{ data_type => "varchar", is_nullable => 1, size => 100 },
);

=head1 PRIMARY KEY
Expand Down Expand Up @@ -131,8 +139,8 @@ __PACKAGE__->belongs_to(
);


# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-01 20:37:37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JDEk/1HSGvguOqR9mXGelQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-02 13:27:16
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BC70mzdOdt5zvpzHqV7KtQ


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down
4 changes: 2 additions & 2 deletions db/literature.dat
Expand Up @@ -30,7 +30,7 @@ UNLOCK TABLES;

LOCK TABLES `actor_role` WRITE;
/*!40000 ALTER TABLE `actor_role` DISABLE KEYS */;
INSERT INTO `actor_role` VALUES (1,1,1),(2,1,2),(3,2,1),(4,2,2);
INSERT INTO `actor_role` VALUES (1,1,1,NULL),(2,1,2,NULL),(3,2,1,NULL),(4,2,2,NULL);
/*!40000 ALTER TABLE `actor_role` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -121,4 +121,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2015-10-02 13:24:51
-- Dump completed on 2015-10-02 13:27:31
3 changes: 2 additions & 1 deletion db/literature.sql
Expand Up @@ -44,6 +44,7 @@ CREATE TABLE `actor_role` (
`actor` int(11) NOT NULL,
`production` int(11) NOT NULL,
`fictional_character` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`actor`,`production`,`fictional_character`),
KEY `production` (`production`),
KEY `fictional_character` (`fictional_character`),
Expand Down Expand Up @@ -197,4 +198,4 @@ CREATE TABLE `work_product` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2015-10-02 13:24:51
-- Dump completed on 2015-10-02 13:27:31

0 comments on commit 79728b8

Please sign in to comment.