Permalink
Browse files

Divides fixture-project doctrine schema.yml file into smaller parts

  • Loading branch information...
fruit committed Dec 6, 2012
1 parent 6609310 commit 33e30a551fa3ded7ef409ad34dcc961f93712bf1
@@ -0,0 +1,24 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+AirCompany:
+ options:
+ symfony: { form: false, filter: false }
+ actAs:
+ Cachetaggable:
+ invalidateCollectionVersionByChangingColumns:
+ - is_enabled
+ - is_deleted
+ columns:
+ id:
+ type: integer
+ primary: true
+ autoincrement: true
+ unsigned: true
+ name: string(255)
+ since: date
+ is_enabled: boolean(true)
+ is_deleted: boolean(false)
@@ -0,0 +1,21 @@
+detect_relations: false
+options:
+ type: InnoDB
+ charset: utf8
+ collate: utf8_general_ci
+
+Article:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: articles
+ columns:
+ id:
+ type: integer(4)
+ primary: true
+ autoincrement: true
+ unsigned: true
+ name: string(127)
+ is_visible:
+ type: boolean
+ unsigned: true
+ default: 0
@@ -0,0 +1,42 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+BlogPost:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: blog_post
+ actAs:
+ Cachetaggable: ~
+ I18n:
+ fields: [content]
+ columns:
+ id:
+ type: integer
+ primary: true
+ autoincrement: true
+ unsigned: true
+ notnull: true
+ is_enabled: boolean(true)
+ title: string(255)
+ slug: string(10)
+ content: clob
+ relations:
+ BlogPostComment:
+ class: BlogPostComment
+ type: many
+ foreignType: one
+ local: id
+ foreign: blog_post_id
+ foreignAlias: BlogPost
+ cascade: [delete]
+ BlogPostVote:
+ class: BlogPostVote
+ type: many
+ foreignType: one
+ local: id
+ foreign: blog_post_id
+ foreignAlias: BlogPost
+ cascade: [tags]
@@ -0,0 +1,29 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+BlogPostComment:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: blog_post_comment
+ actAs:
+ Cachetaggable:
+ uniqueColumn: id
+ columns:
+ id:
+ type: integer
+ primary: true
+ autoincrement: true
+ unsigned: true
+ blog_post_id:
+ type: integer
+ unsigned: true
+ notnull: false
+ author: string(20)
+ message: string(255)
+ relations:
+ BlogPost:
+ onDelete: CASCADE
+ onUpdate: CASCADE
@@ -0,0 +1,19 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+Book:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: book
+ actAs:
+ Cachetaggable:
+ uniqueColumn: [lang, slug]
+ uniqueKeyFormat: '%s-%s'
+ columns:
+ slug: string(40)
+ lang: string(2)
+ indexes:
+ lang_slug_idx: { fields: [lang, slug], type: unique }
@@ -4,22 +4,6 @@ options:
charset: utf8
collate: utf8_general_ci
-Article:
- options:
- symfony: { form: false, filter: false }
- tableName: articles
- columns:
- id:
- type: integer(4)
- primary: true
- autoincrement: true
- unsigned: true
- name: string(127)
- is_visible:
- type: boolean
- unsigned: true
- default: 0
-
Comment:
options:
symfony: { form: false, filter: false }
@@ -0,0 +1,14 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+Device:
+ options:
+ symfony: { form: false, filter: false }
+ actAs:
+ Cachetaggable:
+ invalidateCollectionVersionOnUpdate: true
+ columns:
+ name: string(255)
@@ -0,0 +1,51 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+Food:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: food
+ actAs:
+ SoftDelete: ~
+ Cachetaggable: ~
+ columns:
+ title: string(255)
+ manufacturer_id:
+ type: integer(4)
+ notnull: false
+ unsigned: true
+ relations:
+ Manufacturer:
+ class: Manufacturer
+ foreignAlias: FoodList
+ local: manufacturer_id
+ type: one
+ foreign: id
+ cascade: [deleteTags]
+
+Manufacturer:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: manufacturer
+ actAs:
+ SoftDelete: ~
+ Cachetaggable: ~
+ columns:
+ id:
+ type: integer(4)
+ primary: true
+ autoincrement: true
+ unsigned: true
+ name: string(255)
+ relations:
+ FoodList:
+ class: Food
+ foreignAlias: Manufacturer
+ local: id
+ foreign: manufacturer_id
+ type: many
+ onDelete: SET NULL
+ onUpdate: CASCADE
@@ -0,0 +1,51 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+FoodReordered:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: reordered_food
+ actAs:
+ Cachetaggable: ~
+ SoftDelete: ~
+ columns:
+ title: string(255)
+ manufacturer_id:
+ type: integer(4)
+ notnull: false
+ unsigned: true
+ relations:
+ Manufacturer:
+ class: ReorderedManufacturer
+ foreignAlias: FoodList
+ local: manufacturer_id
+ type: one
+ foreign: id
+ cascade: [deleteTags]
+
+ReorderedManufacturer:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: reordered_manufacturer
+ actAs:
+ Cachetaggable: ~
+ SoftDelete: ~
+ columns:
+ id:
+ type: integer(4)
+ primary: true
+ autoincrement: true
+ unsigned: true
+ name: string(255)
+ relations:
+ FoodList:
+ class: ReorderedFood
+ foreignAlias: Manufacturer
+ local: id
+ foreign: manufacturer_id
+ type: many
+ onDelete: SET NULL
+ onUpdate: CASCADE
@@ -0,0 +1,20 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+PostVote:
+ options:
+ symfony: { form: false, filter: false }
+ actAs:
+ Cachetaggable: ~
+ columns:
+ blog_post_vote_id:
+ type: integer
+ unsigned: true
+ primary: true
+ blog_post_id:
+ type: integer
+ unsigned: true
+ primary: true
@@ -0,0 +1,19 @@
+detect_relations: true
+options:
+ type: InnoDB
+ charset: utf8
+ collation: utf8_general_ci
+
+Repository:
+ options:
+ symfony: { form: false, filter: false }
+ tableName: repository
+ actAs:
+ Cachetaggable:
+ uniqueColumn: [hash, version, fake_column]
+ uniqueKeyFormat: '%s-%d'
+ columns:
+ hash: string(32)
+ version: integer(1)
+ indexes:
+ hash_version_idx: { fields: [hash, version], type: unique }
Oops, something went wrong.

0 comments on commit 33e30a5

Please sign in to comment.