site-libsoc/Server/db/migrations/2022026611846565_create_tab...

24 lines
524 B
Julia

module CreateTableGroups
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:groups) do
[
primary_key()
column(:country, :string)
column(:state, :string)
column(:town, :string)
column(:contact, :string)
column(:latitude, :float)
column(:longitude, :float)
column(:members, :int)
]
end
end
function down()
drop_table(:groups)
end
end