Prvbl v0.14.1 #1
Open
Annotations
4 errors, 5 warnings, and 10 notices
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231120006_add_session.sql#L2
Dropping non-virtual column "name" (DS103)
Details: https://atlasgo.io/lint/analyzers#DS103
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231120006_add_session.sql#L2
Adding a non-nullable "varchar" column "first_name" on table "users" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231120006_add_session.sql#L2
Adding a non-nullable "varchar" column "last_name" on table "users" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0
Atlas failed with code 1: {
"Env": {
"Driver": "mysql",
"URL": {
"Scheme": "mysql",
"Opaque": "",
"User": {},
"Host": "localhost:3306",
"Path": "/dev",
"RawPath": "",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "parseTime=true",
"Fragment": "",
"RawFragment": "",
"Schema": "dev"
},
"Dir": "examples/migration/ent/migrate/migrations"
},
"Schema": {
"Current": "schema \"dev\" {\n charset = \"utf8mb4\"\n collate = \"utf8mb4_0900_ai_ci\"\n}\n",
"Desired": "table \"cards\" {\n schema = schema.dev\n collate = \"utf8mb4_bin\"\n column \"id\" {\n null = false\n type = bigint\n auto_increment = true\n }\n column \"owner_id\" {\n null = false\n type = bigint\n default = 0\n }\n column \"number_hash\" {\n null = false\n type = varchar(255)\n }\n column \"cvv_hash\" {\n null = false\n type = varchar(255)\n }\n column \"expires_at\" {\n null = true\n type = timestamp\n }\n column \"type\" {\n null = false\n type = varchar(255)\n default = \"unknown\"\n }\n primary_key {\n columns = [column.id]\n }\n foreign_key \"cards_users_cards\" {\n columns = [column.owner_id]\n ref_columns = [table.users.column.id]\n on_update = NO_ACTION\n on_delete = NO_ACTION\n }\n index \"cards_users_cards\" {\n columns = [column.owner_id]\n }\n check \"number_hash_length\" {\n expr = \"(length(`number_hash`) = 16)\"\n }\n}\ntable \"payments\" {\n schema = schema.dev\n collate = \"utf8mb4_bin\"\n column \"id\" {\n null = false\n type = bigint\n auto_increment = true\n }\n column \"amount\" {\n null = false\n type = double\n }\n column \"currency\" {\n null = false\n type = enum(\"USD\",\"EUR\",\"VND\",\"ILS\")\n }\n column \"time\" {\n null = false\n type = timestamp\n }\n column \"description\" {\n null = false\n type = varchar(255)\n }\n column \"status\" {\n null = false\n type = enum(\"pending\",\"completed\",\"failed\")\n }\n column \"card_id\" {\n null = false\n type = bigint\n }\n primary_key {\n columns = [column.id]\n }\n foreign_key \"payments_cards_payments\" {\n columns = [column.card_id]\n ref_columns = [table.cards.column.id]\n on_update = NO_ACTION\n on_delete = NO_ACTION\n }\n index \"payment_status_time\" {\n columns = [column.status, column.time]\n }\n index \"payments_cards_payments\" {\n columns = [column.card_id]\n }\n check \"amount_positive\" {\n expr = \"(`amount` > 0)\"\n }\n}\ntable \"pets\" {\n schema = schema.dev\n collate = \"utf8mb4_bin\"\n column \"id\" {\n null = false\n type = char(36)\n }\n column \"weight\" {\n null = false\n type = double\n }\n column \"age\" {\n null = false\n type = double\n }\n column \"best_friend_id\" {\n null = true\n type = char(36)\n default = \"00000000-0000-0000-0000-000000000000\"\n }\n column \"owner_id\" {\n null = false\n type = bigint\n default = 0\n }\n column \"name\" {\n null = false\n type = varchar(255)\n }\n primary_key {\n columns = [column.id]\n }\n foreign_key \"pets_pets_best_friend\" {\n columns = [column.best_friend_id]\n ref_columns = [table.pets.column.id]\n on_update = NO_ACTION\n on_delete = SET_NULL\n }\n foreign_key \"pets_users_owner\" {\n columns = [column.owner_id]\n ref_columns = [table.users.column.id]\n on_update = NO_ACTION\n on_delete = NO_ACTION\n }\n index \"best_friend_id\" {\n unique = true\n columns = [column.best_friend_id]\n }\n index \"pet_name_owner_id\" {\n unique = true\n columns = [column.name, column.owner_id]\n }\n index \"pets_users_owner\" {\n columns = [column.owner_id]\n }\n}\ntable \"session_devices\" {\n schema = schema.dev\n collate = \"utf8mb4_bin\"\n column \"id\" {\n null = false\n type = char(36)\n }\n column \"ip_address\" {\n nul
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run actions/[email protected]
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run actions/[email protected]
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run ariga/atlas-action@v0
Received error: Error: GraphQL Error (Code: 401): {"response":{"error":"<html>\r\n<head><title>401 Authorization Required</title></head>\r\n<body>\r\n<center><h1>401 Authorization Required</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n","status":401,"headers":{}},"request":{"query":"\n mutation CreateReportInput($input: CreateReportInput!) {\n createReport(input: $input) {\n runID\n url\n cloudReports {\n text\n diagnostics {\n text\n code\n pos\n }\n }\n }\n }\n","variables":{"input":{"envName":"CI","repo":"prvbl/ent","projectName":"prvbl/ent/examples/migration/ent/migrate/migrations","branch":"prvbl-v0.14.1","commit":"12cb45c398089465f4591a7a89d7e4f2376ce3e2","url":"https://github.com/prvbl/ent/pull/1","status":"FAILED","payload":"{\"Env\":{\"Driver\":\"mysql\",\"URL\":{\"Scheme\":\"mysql\",\"Opaque\":\"\",\"User\":{},\"Host\":\"localhost:3306\",\"Path\":\"/dev\",\"RawPath\":\"\",\"OmitHost\":false,\"ForceQuery\":false,\"RawQuery\":\"parseTime=true\",\"Fragment\":\"\",\"RawFragment\":\"\",\"Schema\":\"dev\"},\"Dir\":\"examples/migration/ent/migrate/migrations\"},\"Schema\":{\"Current\":\"schema \\\"dev\\\" {\\n charset = \\\"utf8mb4\\\"\\n collate = \\\"utf8mb4_0900_ai_ci\\\"\\n}\\n\",\"Desired\":\"table \\\"cards\\\" {\\n schema = schema.dev\\n collate = \\\"utf8mb4_bin\\\"\\n column \\\"id\\\" {\\n null = false\\n type = bigint\\n auto_increment = true\\n }\\n column \\\"owner_id\\\" {\\n null = false\\n type = bigint\\n default = 0\\n }\\n column \\\"number_hash\\\" {\\n null = false\\n type = varchar(255)\\n }\\n column \\\"cvv_hash\\\" {\\n null = false\\n type = varchar(255)\\n }\\n column \\\"expires_at\\\" {\\n null = true\\n type = timestamp\\n }\\n column \\\"type\\\" {\\n null = false\\n type = varchar(255)\\n default = \\\"unknown\\\"\\n }\\n primary_key {\\n columns = [column.id]\\n }\\n foreign_key \\\"cards_users_cards\\\" {\\n columns = [column.owner_id]\\n ref_columns = [table.users.column.id]\\n on_update = NO_ACTION\\n on_delete = NO_ACTION\\n }\\n index \\\"cards_users_cards\\\" {\\n columns = [column.owner_id]\\n }\\n check \\\"number_hash_length\\\" {\\n expr = \\\"(length(`number_hash`) = 16)\\\"\\n }\\n}\\ntable \\\"payments\\\" {\\n schema = schema.dev\\n collate = \\\"utf8mb4_bin\\\"\\n column \\\"id\\\" {\\n null = false\\n type = bigint\\n auto_increment = true\\n }\\n column \\\"amount\\\" {\\n null = false\\n type = double\\n }\\n column \\\"currency\\\" {\\n null = false\\n type = enum(\\\"USD\\\",\\\"EUR\\\",\\\"VND\\\",\\\"ILS\\\")\\n }\\n column \\\"time\\\" {\\n null = false\\n type = timestamp\\n }\\n column \\\"description\\\" {\\n null = false\\n type = varchar(255)\\n }\\n column \\\"status\\\" {\\n null = false\\n type = enum(\\\"pending\\\",\\\"completed\\\",\\\"failed\\\")\\n }\\n column \\\"card_id\\\" {\\n null = false\\n type = bigint\\n }\\n primary_key {\\n columns = [column.id]\\n }\\n foreign_key \\\"payments_cards_payments\\\" {\\n columns = [column.card_id]\\n ref_columns = [table.cards.column.id]\\n on_update = NO_ACTION\\n on_delete = NO_ACTION\\n }\\n index \\\"payment_status_time\\\" {\\n columns = [column.status, column.time]\\n }\\n index \\\"payments_cards_payments\\\" {\\n columns = [column.card_id]\\n }\\n check \\\"amount_positive\\\" {\\n expr = \\\"(`amount` \\u003e 0)\\\"\\n }\\n}\\ntable \\\"pets\\\" {\\n schema = schema.dev\\n collate = \\\"utf8mb4_bin\\\"\\n column \\\"id\\\" {\\n null = false\\n type = char(36)\\n }\\n column \\\"weight\\\" {\\n null = false\\n type = double\\n }\\n column \\\"age\\\" {\\n null = false\\n type = double\\n }\\n column \\\"best_friend_id\\\" {\\n null = true\\n type = char(36)\\n default = \\\"00000000-0000-0000-0000-000000000000\\
|
Run ariga/atlas-action@v0
Failed reporting to Atlas Cloud: Invalid Token
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20221114090322_add_age.sql#L2
Adding a non-nullable "double" column "age" on table "users" without a default value implicitly sets existing rows with 0 (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20221114101516_add_name.sql#L2
Adding a non-nullable "varchar" column "name" on table "users" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231083716_add_card_number.sql#L2
Adding a non-nullable "varchar" column "number" on table "cards" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231091550_add_pet_name.sql#L2
Adding a non-nullable "varchar" column "name" on table "pets" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231091550_add_pet_name.sql#L2
Adding a unique index "pet_name_owner_id" on table "pets" might fail in case column "owner_id" contains duplicate entries (MF101)
Details: https://atlasgo.io/lint/analyzers#MF101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231102849_add_currency.sql#L2
Inserting enum values not at the end to column "currency" in table "payments" requires a table copy (MY112)
Details: https://atlasgo.io/lint/analyzers#MY112
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231123114_hash_card.sql#L2
Adding a non-nullable "varchar" column "cvv_hash" on table "cards" without a default value implicitly sets existing rows with "" (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231123114_hash_card.sql#L4
Adding a non-nullable "double" column "weight" on table "pets" without a default value implicitly sets existing rows with 0 (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231123114_hash_card.sql#L4
Adding a non-nullable "double" column "age" on table "pets" without a default value implicitly sets existing rows with 0 (MY101)
Details: https://atlasgo.io/lint/analyzers#MY101
|
Run ariga/atlas-action@v0:
examples/migration/ent/migrate/migrations/20231231123114_hash_card.sql#L2
Renaming column "number" to "number_hash" (BC102)
Details: https://atlasgo.io/lint/analyzers#BC102
|
Loading