Actions
Bug #19189
closeddb:migrate breaks RPM build
Difficulty:
Triaged:
Description
The recent merge of a future dated subscriptions migration is incompatible with sqlite and thus broke RPM building:
== 20170222131211 ChangePoolColumnsToDates: migrating ========================= -- change_column(:katello_pools, :start_date, "timestamp USING CAST(start_date AS timestamp without time zone)") rake aborted! StandardError: An error has occurred, this and all later migrations canceled: SQLite3::SQLException: near "USING": syntax error: CREATE TABLE "katello_pools" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cp_id" varchar(255) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "subscription_id" integer, "account_number" integer, "contract_number" integer, "virtual" boolean, "quantity" integer, "start_date" timestamp USING CAST(start_date AS timestamp without time zone), "pool_type" varchar(255), "end_date" varchar(255), "ram" integer, "multi_entitlement" boolean, "consumed" integer, "virt_only" boolean DEFAULT 'f' NOT NULL, "unmapped_guest" boolean DEFAULT 'f' NOT NULL, "virt_who" boolean DEFAULT 'f' NOT NULL) /opt/rh/sclo-ror42/root/usr/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `initialize' /opt/rh/sclo-ror42/root/usr/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `new' /opt/rh/sclo-ror42/root/usr/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `prepare' /opt/rh/sclo-ror42/root/usr/share/gems/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:134:in `execute' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-
Actions