diff --git a/Literature/lib/Literature/Schema/Result/ActorRole.pm b/Literature/lib/Literature/Schema/Result/ActorRole.pm index 220013a..d98ab0a 100644 --- a/Literature/lib/Literature/Schema/Result/ActorRole.pm +++ b/Literature/lib/Literature/Schema/Result/ActorRole.pm @@ -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( @@ -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 @@ -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 diff --git a/db/literature.dat b/db/literature.dat index 3f314ef..c9bab94 100644 --- a/db/literature.dat +++ b/db/literature.dat @@ -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; @@ -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 diff --git a/db/literature.sql b/db/literature.sql index 904c389..70cdaad 100644 --- a/db/literature.sql +++ b/db/literature.sql @@ -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`), @@ -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