Merge branch 'master' into 2334-remove-que

This commit is contained in:
Thiago Youssef 2022-09-28 07:40:02 -03:00
commit a6a3f72032
240 changed files with 5827 additions and 1432 deletions

View file

@ -1,10 +1,10 @@
class AddCodeCacheForDomainContact < ActiveRecord::Migration[6.0]
def change
add_column :domain_contacts, :contact_code_cache, :string
DomainContact.all.each do |x|
x.contact_code_cache = x.contact.code
x.save
end
# add_column :domain_contacts, :contact_code_cache, :string
#
# DomainContact.all.each do |x|
# x.contact_code_cache = x.contact.code
# x.save
# end
end
end

View file

@ -1,5 +1,5 @@
class AddStatusesBackupForDomains < ActiveRecord::Migration[6.0]
def change
add_column :domains, :statuses_backup, :string, array: true, default: []
# add_column :domains, :statuses_backup, :string, array: true, default: []
end
end

View file

@ -1,5 +1,5 @@
class RenameDomainsStatusesBackupToStatusesBeforeForceDelete < ActiveRecord::Migration[6.0]
def change
rename_column :domains, :statuses_backup, :statuses_before_force_delete
# rename_column :domains, :statuses_backup, :statuses_before_force_delete
end
end

View file

@ -0,0 +1,5 @@
class AddPaymentLinkToInvoice < ActiveRecord::Migration[6.1]
def change
add_column :invoices, :payment_link, :string
end
end

View file

@ -0,0 +1,5 @@
class AddFailedValidationReasongToDnskey < ActiveRecord::Migration[6.1]
def change
add_column :dnskeys, :failed_validation_reason, :string
end
end

View file

@ -0,0 +1,5 @@
class AddTypeToAuction < ActiveRecord::Migration[6.1]
def change
add_column :auctions, :platform, :integer, null: true
end
end

View file

@ -0,0 +1,5 @@
class RemoveEmailAddressVerifications < ActiveRecord::Migration[6.1]
def change
# drop_table :email_address_verifications
end
end

View file

@ -0,0 +1,5 @@
class RemoveEmailAddressesValidations < ActiveRecord::Migration[6.1]
def change
# drop_table :email_addresses_validations
end
end

View file

@ -0,0 +1,5 @@
class RemoveEmailAddressesVerifications < ActiveRecord::Migration[6.1]
def change
# drop_table :email_addresses_verifications
end
end

View file

@ -0,0 +1,5 @@
class RemoveContactCodeCacheFromDomainContacts < ActiveRecord::Migration[6.1]
def change
remove_column :domain_contacts, :contact_code_cache
end
end

View file

@ -0,0 +1,5 @@
class RemoveStatusesBeforeForceDeleteFromDomains < ActiveRecord::Migration[6.1]
def change
remove_column :domains, :statuses_before_force_delete if column_exists? :domains, :statuses_before_force_delete
end
end

View file

@ -0,0 +1,6 @@
class AddMonthlyInvoiceTypeColumns < ActiveRecord::Migration[6.1]
def change
add_column :invoices, :monthly_invoice, :boolean, default: false
add_column :invoices, :metadata, :jsonb
end
end

View file

@ -337,7 +337,8 @@ CREATE TABLE public.auctions (
uuid uuid DEFAULT public.gen_random_uuid() NOT NULL,
created_at timestamp without time zone NOT NULL,
registration_code character varying,
registration_deadline timestamp without time zone
registration_deadline timestamp without time zone,
platform integer
);
@ -813,7 +814,8 @@ CREATE TABLE public.dnskeys (
updator_str character varying,
legacy_domain_id integer,
updated_at timestamp without time zone,
validation_datetime timestamp without time zone
validation_datetime timestamp without time zone,
failed_validation_reason character varying
);
@ -846,7 +848,6 @@ CREATE TABLE public.domain_contacts (
domain_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
contact_code_cache character varying,
creator_str character varying,
updator_str character varying,
type character varying,
@ -1181,6 +1182,9 @@ CREATE TABLE public.invoices (
buyer_vat_no character varying,
issue_date date NOT NULL,
e_invoice_sent_at timestamp without time zone,
payment_link character varying,
monthly_invoice boolean DEFAULT false,
metadata jsonb,
CONSTRAINT invoices_due_date_is_not_before_issue_date CHECK ((due_date >= issue_date))
);
@ -5224,7 +5228,15 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220106123143'),
('20220113201642'),
('20220113220809'),
('20220124105717'),
('20220216113112'),
('20220228093211'),
('20220316140727'),
('20220406085500');
('20220406085500'),
('20220412130856'),
('20220413073315'),
('20220413084536'),
('20220413084748'),
('20220504090512'),
('20220524130709'),
('20220818075833');