Update 2022026611846570_create_table_communes_requests.jl

This commit is contained in:
a-ill 2023-08-01 16:27:47 +03:00
parent 0cbbdb8430
commit 38b6252f75

View File

@ -1,4 +1,4 @@
module CreateTablePartiesRequests module CreateTableCommunesRequests
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
@ -7,7 +7,7 @@ using .DatabaseSupport
import .DatabaseSupport: set_default import .DatabaseSupport: set_default
function up() function up()
create_table(:parties_requests) do create_table(:communes_requests) do
[ [
primary_key() primary_key()
column(:id_given, :integer) column(:id_given, :integer)
@ -23,12 +23,12 @@ function up()
] ]
end end
set_default("parties_requests","verified",false) set_default("communes_requests","verified",false)
set_default("parties_requests","added",false) set_default("communes_requests","added",false)
end end
function down() function down()
drop_table(:parties_requests) drop_table(:communes_requests)
end end
end end