-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: clean up old search code, generate migrations
- Loading branch information
1 parent
4a37edd
commit bea48bf
Showing
23 changed files
with
1,884 additions
and
130 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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
defmodule AshHq.SqliteRepo do | ||
@moduledoc "Ecto repo for interacting with Sqlite" | ||
use AshSqlite.Repo, | ||
otp_app: :ash_hq | ||
end |
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
21 changes: 21 additions & 0 deletions
21
priv/repo/migrations/20231012221540_migrate_resources59.exs
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 @@ | ||
defmodule AshHq.Repo.Migrations.MigrateResources59 do | ||
@moduledoc """ | ||
Updates resources based on their most recent snapshots. | ||
This file was autogenerated with `mix ash_postgres.generate_migrations` | ||
""" | ||
|
||
use Ecto.Migration | ||
|
||
def up do | ||
alter table(:users) do | ||
remove(:ashley_access) | ||
end | ||
end | ||
|
||
def down do | ||
alter table(:users) do | ||
add(:ashley_access, :boolean, default: false) | ||
end | ||
end | ||
end |
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,128 @@ | ||
{ | ||
"attributes": [ | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "utc_datetime_usec", | ||
"source": "confirmed_at", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "fragment(\"uuid_generate_v4()\")", | ||
"size": null, | ||
"type": "uuid", | ||
"source": "id", | ||
"references": null, | ||
"primary_key?": true, | ||
"allow_nil?": false, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "citext", | ||
"source": "email", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": false, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "text", | ||
"source": "hashed_password", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "text", | ||
"source": "encrypted_name", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "text", | ||
"source": "encrypted_address", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "text", | ||
"source": "shirt_size", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "nil", | ||
"size": null, | ||
"type": "map", | ||
"source": "github_info", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": true, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "fragment(\"now()\")", | ||
"size": null, | ||
"type": "utc_datetime_usec", | ||
"source": "created_at", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": false, | ||
"generated?": false | ||
}, | ||
{ | ||
"default": "fragment(\"now()\")", | ||
"size": null, | ||
"type": "utc_datetime_usec", | ||
"source": "updated_at", | ||
"references": null, | ||
"primary_key?": false, | ||
"allow_nil?": false, | ||
"generated?": false | ||
} | ||
], | ||
"table": "users", | ||
"hash": "73825998BF52DC0D54C385CAD698898654F4564DB62682D46AADA399AFACFE8E", | ||
"repo": "Elixir.AshHq.Repo", | ||
"multitenancy": { | ||
"global": null, | ||
"attribute": null, | ||
"strategy": null | ||
}, | ||
"base_filter": null, | ||
"schema": null, | ||
"identities": [ | ||
{ | ||
"name": "unique_email", | ||
"keys": [ | ||
"email" | ||
], | ||
"index_name": "users_unique_email_index", | ||
"base_filter": null | ||
} | ||
], | ||
"custom_indexes": [], | ||
"custom_statements": [], | ||
"has_create_action": true, | ||
"check_constraints": [] | ||
} |
Oops, something went wrong.