mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Modify domain registration record structure.
This commit is contained in:
parent
e52aa29290
commit
621e45b6a2
1 changed files with 30 additions and 0 deletions
30
migrations/095_modify_domains.rb
Normal file
30
migrations/095_modify_domains.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.drop_table :domains
|
||||
|
||||
DB.create_table! :domains do
|
||||
primary_key :id
|
||||
Integer :site_id, index: true
|
||||
Integer :parent_site_id, index: true
|
||||
String :gandi_domain_id
|
||||
String :name
|
||||
DateTime :created_at
|
||||
DateTime :released_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :domains
|
||||
|
||||
DB.create_table! :domains do
|
||||
primary_key :id
|
||||
Integer :site_id, index: true
|
||||
String :gandi_handle
|
||||
String :gandi_password
|
||||
String :gandi_domain_id
|
||||
String :name
|
||||
DateTime :created_at
|
||||
DateTime :released_at
|
||||
end
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue