mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
migrations for future (possible) github integration
This commit is contained in:
parent
8405cb5067
commit
ea760fc849
2 changed files with 22 additions and 0 deletions
11
migrations/106_github_access_token.rb
Normal file
11
migrations/106_github_access_token.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Sequel.migration do
|
||||||
|
up {
|
||||||
|
DB.add_column :sites, :github_access_token, :text
|
||||||
|
DB.add_column :sites, :github_repo_name, :text
|
||||||
|
}
|
||||||
|
|
||||||
|
down {
|
||||||
|
DB.drop_column :sites, :github_access_token
|
||||||
|
DB.drop_column :sites, :github_repo_name
|
||||||
|
}
|
||||||
|
end
|
11
migrations/107_github_deploy_key.rb
Normal file
11
migrations/107_github_deploy_key.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Sequel.migration do
|
||||||
|
up {
|
||||||
|
DB.add_column :sites, :github_deploy_key, :text
|
||||||
|
DB.drop_column :sites, :github_access_token
|
||||||
|
}
|
||||||
|
|
||||||
|
down {
|
||||||
|
DB.drop_column :sites, :github_deploy_key
|
||||||
|
DB.add_column :sites, :github_access_token, :text
|
||||||
|
}
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue