mirror of
https://github.com/ash-project/ash_sqlite.git
synced 2024-09-08 13:40:48 +12:00
chore: regen migrations
This commit is contained in:
parent
fd182ec3d2
commit
e17ce610ff
17 changed files with 96 additions and 477 deletions
|
@ -31,13 +31,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -47,15 +47,15 @@
|
|||
}
|
||||
],
|
||||
"table": "accounts",
|
||||
"hash": "59836289B062DDF04DA51F63533EFE98FB13C69675119D0FB6728BE5B3204866",
|
||||
"hash": "2320B8B55C597C2F07DED9B7BF714832FE22B0AA5E05959A4EA0553669BC368D",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -55,15 +55,15 @@
|
|||
}
|
||||
],
|
||||
"table": "authors",
|
||||
"hash": "96AF8AF31D328221EB7A373A0EAC3177FA34FA4873C75AACA42937FB72E776BD",
|
||||
"hash": "EFBB1E574CC263E6E650121801C48B4370F1C9A7C8A213BEF111BFC769BF6651",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -31,13 +31,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": "nil",
|
||||
"destination_attribute_generated": false
|
||||
},
|
||||
|
@ -47,15 +47,15 @@
|
|||
}
|
||||
],
|
||||
"table": "comment_ratings",
|
||||
"hash": "D6741B2EC934CC837AAA6E450D8E0AB5FEB2712EE921794670BFD2BE77905666",
|
||||
"hash": "88FFC6DC62CEA37397A9C16C51E43F6FF6EED6C34E4C529FFB4D20EF1BCFF98F",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -61,13 +61,13 @@
|
|||
"on_delete": "delete",
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": "update",
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -86,13 +86,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -102,15 +102,15 @@
|
|||
}
|
||||
],
|
||||
"table": "comments",
|
||||
"hash": "44EA78C43D6E608ECAF98DC52C2763B4A06A37E689C1CDCEB9C65C58105C718B",
|
||||
"hash": "4F081363C965C68A8E3CC755BCA058C9DC0FB18F5BE5B44FEBEB41B787727702",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -22,15 +22,15 @@
|
|||
}
|
||||
],
|
||||
"table": "integer_posts",
|
||||
"hash": "C2B733710FBBF80A470C0F8BB5808DC1E2F9824EF0F9A3D095C81926DD20F952",
|
||||
"hash": "A3F61182D99B092A9D17E34B645823D8B0561B467B0195EFE0DA42947153D7E0",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -61,13 +61,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -77,7 +77,7 @@
|
|||
}
|
||||
],
|
||||
"table": "managers",
|
||||
"hash": "3E9372C380E45A8F2A76D19CB6214F6A5CE76F2628CA36A176FB78A05C574A37",
|
||||
"hash": "1A4EFC8497F6A73543858892D6324407A7060AC2585EDCA9A759D1E8AF509DEF",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [
|
||||
{
|
||||
|
@ -89,12 +89,12 @@
|
|||
"index_name": "managers_uniq_code_index"
|
||||
}
|
||||
],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -22,15 +22,15 @@
|
|||
}
|
||||
],
|
||||
"table": "orgs",
|
||||
"hash": "0B3135AADE218FAF66F0D5B4DCDD4F2C0CE299F6FCD4CE02C14003459C793873",
|
||||
"hash": "106CE7B860A710A1275B05F81F2272B74678DC467F87E4179F9BEA8BC979613C",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -1,87 +0,0 @@
|
|||
{
|
||||
"attributes": [
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "state",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "uuid",
|
||||
"source": "source_post_id",
|
||||
"references": {
|
||||
"name": "post_links_source_post_id_fkey",
|
||||
"table": "posts",
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
},
|
||||
"on_delete": null,
|
||||
"on_update": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"allow_nil?": false,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "uuid",
|
||||
"source": "destination_post_id",
|
||||
"references": {
|
||||
"name": "post_links_destination_post_id_fkey",
|
||||
"table": "posts",
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
},
|
||||
"on_delete": null,
|
||||
"on_update": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"allow_nil?": false,
|
||||
"generated?": false
|
||||
}
|
||||
],
|
||||
"table": "post_links",
|
||||
"hash": "870ACE4A2EB4F54E61458810247D3AC4259B8B5C8EEFA187F7907C58F773B063",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [
|
||||
{
|
||||
"name": "unique_link",
|
||||
"keys": [
|
||||
"source_post_id",
|
||||
"destination_post_id"
|
||||
],
|
||||
"base_filter": null,
|
||||
"index_name": "post_links_unique_link_index"
|
||||
}
|
||||
],
|
||||
"has_create_action": true,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"attributes": [
|
||||
{
|
||||
"default": "\"active\"",
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "state",
|
||||
|
@ -21,13 +21,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -46,13 +46,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -62,7 +62,7 @@
|
|||
}
|
||||
],
|
||||
"table": "post_links",
|
||||
"hash": "160D65E5F78855E4B9DE8907FD2B26299E7DCABCF667DAD9898309BA8AAA2B74",
|
||||
"hash": "6ADC017A784C2619574DE223A15A29ECAF6D67C0543DF67A8E4E215E8F8ED300",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [
|
||||
{
|
||||
|
@ -75,12 +75,12 @@
|
|||
"index_name": "post_links_unique_link_index"
|
||||
}
|
||||
],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -31,13 +31,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": "nil",
|
||||
"destination_attribute_generated": false
|
||||
},
|
||||
|
@ -47,15 +47,15 @@
|
|||
}
|
||||
],
|
||||
"table": "post_ratings",
|
||||
"hash": "42FE177E401874AB5A6E63A08D8A08143DB0FB1BBAE39DACEB3FBF88FD15E76F",
|
||||
"hash": "73A4E0A79F5A6449FFE48E2469FDC275723EF207780DA9027F3BBE3119DC0FFA",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -32,15 +32,15 @@
|
|||
}
|
||||
],
|
||||
"table": "post_views",
|
||||
"hash": "F92BCC0AC778FC683A6BC4BFA66AEC4A5FB75C53D6B3B47D0C357D6EA6E39EF6",
|
||||
"hash": "D0749D9F514E36781D95F2967C97860C58C6DEAE95543DFAAB0E9C09A1480E93",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -1,261 +0,0 @@
|
|||
{
|
||||
"attributes": [
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "uuid",
|
||||
"source": "id",
|
||||
"references": null,
|
||||
"primary_key?": true,
|
||||
"allow_nil?": false,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "title",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "bigint",
|
||||
"source": "score",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "boolean",
|
||||
"source": "public",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "citext",
|
||||
"source": "category",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "type",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "bigint",
|
||||
"source": "price",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "decimal",
|
||||
"source": "decimal",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "status",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "status",
|
||||
"source": "status_enum",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "map",
|
||||
"source": "stuff",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "uniq_one",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "uniq_two",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "uniq_custom_one",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "uniq_custom_two",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "utc_datetime_usec",
|
||||
"source": "created_at",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": false,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "utc_datetime_usec",
|
||||
"source": "updated_at",
|
||||
"references": null,
|
||||
"primary_key?": false,
|
||||
"allow_nil?": false,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "uuid",
|
||||
"source": "organization_id",
|
||||
"references": {
|
||||
"name": "posts_organization_id_fkey",
|
||||
"table": "orgs",
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
},
|
||||
"on_delete": null,
|
||||
"on_update": null
|
||||
},
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
},
|
||||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "uuid",
|
||||
"source": "author_id",
|
||||
"references": {
|
||||
"name": "posts_author_id_fkey",
|
||||
"table": "authors",
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
},
|
||||
"on_delete": null,
|
||||
"on_update": null
|
||||
},
|
||||
"primary_key?": false,
|
||||
"allow_nil?": true,
|
||||
"generated?": false
|
||||
}
|
||||
],
|
||||
"table": "posts",
|
||||
"hash": "10A86C829A8D72D7C539C9041E229D375821CAB03D7819ED2FAA572F6A093195",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [
|
||||
{
|
||||
"name": "uniq_one_and_two",
|
||||
"keys": [
|
||||
"uniq_one",
|
||||
"uniq_two"
|
||||
],
|
||||
"base_filter": "type = 'sponsored'",
|
||||
"index_name": "posts_uniq_one_and_two_index"
|
||||
}
|
||||
],
|
||||
"has_create_action": true,
|
||||
"custom_indexes": [
|
||||
{
|
||||
"message": "dude what the heck",
|
||||
"name": null,
|
||||
"table": null,
|
||||
"include": null,
|
||||
"fields": [
|
||||
"uniq_custom_one",
|
||||
"uniq_custom_two"
|
||||
],
|
||||
"where": null,
|
||||
"unique": true,
|
||||
"using": null
|
||||
}
|
||||
],
|
||||
"custom_statements": [],
|
||||
"base_filter": "type = 'sponsored'",
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
}
|
||||
}
|
|
@ -43,7 +43,7 @@
|
|||
{
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "ci_string",
|
||||
"type": "citext",
|
||||
"source": "category",
|
||||
"references": null,
|
||||
"allow_nil?": true,
|
||||
|
@ -51,7 +51,7 @@
|
|||
"primary_key?": false
|
||||
},
|
||||
{
|
||||
"default": "\"sponsored\"",
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "text",
|
||||
"source": "type",
|
||||
|
@ -71,7 +71,7 @@
|
|||
"primary_key?": false
|
||||
},
|
||||
{
|
||||
"default": "\"0\"",
|
||||
"default": "nil",
|
||||
"size": null,
|
||||
"type": "decimal",
|
||||
"source": "decimal",
|
||||
|
@ -181,13 +181,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -206,13 +206,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -222,7 +222,7 @@
|
|||
}
|
||||
],
|
||||
"table": "posts",
|
||||
"hash": "62F0F74F2205FF194D9784C444D97AB277BA3F4C85163AEC42E13AAF52893B13",
|
||||
"hash": "00D35B64138747A522AD4EAB9BB8E09BDFE30C95844FD1D46E0951E85EA18FBE",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [
|
||||
{
|
||||
|
@ -235,12 +235,12 @@
|
|||
"index_name": "posts_uniq_one_and_two_index"
|
||||
}
|
||||
],
|
||||
"base_filter": "type = 'sponsored'",
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": "type = 'sponsored'",
|
||||
"custom_indexes": [
|
||||
{
|
||||
"message": "dude what the heck",
|
|
@ -31,13 +31,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -47,15 +47,15 @@
|
|||
}
|
||||
],
|
||||
"table": "profile",
|
||||
"hash": "D9928A2A80E4F97C60A49663F5FEF1AED527281B757568127DFB293A1C8079C0",
|
||||
"hash": "710F812AC63D2051F6AB22912CE5304088AF1D8F03C2BAFDC07EB24FA62136C2",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -31,13 +31,13 @@
|
|||
"on_delete": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"primary_key?": true,
|
||||
"destination_attribute": "id",
|
||||
"deferrable": false,
|
||||
"on_update": null,
|
||||
"deferrable": false,
|
||||
"destination_attribute_default": null,
|
||||
"destination_attribute_generated": null
|
||||
},
|
||||
|
@ -47,15 +47,15 @@
|
|||
}
|
||||
],
|
||||
"table": "users",
|
||||
"hash": "E049498FF6613245F13A84E56ECE76F84F45A63D2380C9B013CA9786B1AB4390",
|
||||
"hash": "F1D2233C0B448A17B31E8971DEF529020894252BBF5BAFD58D7280FA36249071",
|
||||
"repo": "Elixir.AshSqlite.TestRepo",
|
||||
"identities": [],
|
||||
"base_filter": null,
|
||||
"multitenancy": {
|
||||
"global": null,
|
||||
"attribute": null,
|
||||
"strategy": null
|
||||
"strategy": null,
|
||||
"attribute": null
|
||||
},
|
||||
"base_filter": null,
|
||||
"custom_indexes": [],
|
||||
"custom_statements": [],
|
||||
"has_create_action": true
|
|
@ -1,33 +0,0 @@
|
|||
defmodule AshSqlite.TestRepo.Migrations.MigrateResources2 do
|
||||
@moduledoc """
|
||||
Updates resources based on their most recent snapshots.
|
||||
|
||||
This file was autogenerated with `mix ash_sqlite.generate_migrations`
|
||||
"""
|
||||
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:posts) do
|
||||
modify :decimal, :decimal, default: nil
|
||||
modify :type, :text, default: nil
|
||||
modify :category, :citext
|
||||
end
|
||||
|
||||
alter table(:post_links) do
|
||||
modify :state, :text, default: nil
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:post_links) do
|
||||
modify :state, :text, default: "active"
|
||||
end
|
||||
|
||||
alter table(:posts) do
|
||||
modify :category, :ci_string
|
||||
modify :type, :text, default: "sponsored"
|
||||
modify :decimal, :decimal, default: "0"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -39,10 +39,10 @@ defmodule AshSqlite.TestRepo.Migrations.MigrateResources1 do
|
|||
add :stuff, :map
|
||||
add :status_enum, :status
|
||||
add :status, :text
|
||||
add :decimal, :decimal, default: "0"
|
||||
add :decimal, :decimal
|
||||
add :price, :bigint
|
||||
add :type, :text, default: "sponsored"
|
||||
add :category, :ci_string
|
||||
add :type, :text
|
||||
add :category, :citext
|
||||
add :public, :boolean
|
||||
add :score, :bigint
|
||||
add :title, :text
|
||||
|
@ -78,7 +78,7 @@ defmodule AshSqlite.TestRepo.Migrations.MigrateResources1 do
|
|||
primary_key: true,
|
||||
null: false
|
||||
|
||||
add :state, :text, default: "active"
|
||||
add :state, :text
|
||||
end
|
||||
|
||||
create unique_index(:post_links, [:source_post_id, :destination_post_id],
|
Loading…
Reference in a new issue