mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Allow invalid ident update #2859
This commit is contained in:
parent
0944bd2077
commit
4a32c7641c
18 changed files with 101 additions and 32 deletions
5
db/migrate/20150903105659_add_updated_token.rb
Normal file
5
db/migrate/20150903105659_add_updated_token.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddUpdatedToken < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :contacts, :legacy_ident_updated_at, :datetime
|
||||
end
|
||||
end
|
5
db/migrate/20150921110152_update_contacts_logs.rb
Normal file
5
db/migrate/20150921110152_update_contacts_logs.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class UpdateContactsLogs < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :log_contacts, :legacy_ident_updated_at, :datetime
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class RenameContactIdentUpdator < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :contacts, :legacy_ident_updated_at, :ident_updated_at
|
||||
rename_column :log_contacts, :legacy_ident_updated_at, :ident_updated_at
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150915094707) do
|
||||
ActiveRecord::Schema.define(version: 20150921111842) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -203,6 +203,7 @@ ActiveRecord::Schema.define(version: 20150915094707) do
|
|||
t.hstore "status_notes"
|
||||
t.integer "legacy_history_id"
|
||||
t.integer "copy_from_id"
|
||||
t.datetime "ident_updated_at"
|
||||
end
|
||||
|
||||
add_index "contacts", ["code"], name: "index_contacts_on_code", using: :btree
|
||||
|
@ -585,15 +586,16 @@ ActiveRecord::Schema.define(version: 20150915094707) do
|
|||
add_index "log_contact_statuses", ["whodunnit"], name: "index_log_contact_statuses_on_whodunnit", using: :btree
|
||||
|
||||
create_table "log_contacts", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
t.json "children"
|
||||
t.datetime "ident_updated_at"
|
||||
end
|
||||
|
||||
add_index "log_contacts", ["item_type", "item_id"], name: "index_log_contacts_on_item_type_and_item_id", using: :btree
|
||||
|
|
|
@ -598,7 +598,8 @@ CREATE TABLE contacts (
|
|||
statuses character varying[],
|
||||
status_notes hstore,
|
||||
legacy_history_id integer,
|
||||
copy_from_id integer
|
||||
copy_from_id integer,
|
||||
ident_updated_at timestamp without time zone
|
||||
);
|
||||
|
||||
|
||||
|
@ -1502,7 +1503,8 @@ CREATE TABLE log_contacts (
|
|||
object_changes json,
|
||||
created_at timestamp without time zone,
|
||||
session character varying,
|
||||
children json
|
||||
children json,
|
||||
ident_updated_at timestamp without time zone
|
||||
);
|
||||
|
||||
|
||||
|
@ -4934,7 +4936,13 @@ INSERT INTO schema_migrations (version) VALUES ('20150825125118');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150827151906');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150903105659');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150910113839');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150915094707');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150921110152');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150921111842');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue