zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit ec74d988d61b339143e5be1d3328f8b299d90840
parent a4d31d578af06d2ab3b4732dbf61d9b04a9fd19c
Author: srfsh <dev@srf.sh>
Date:   Thu, 25 Aug 2022 12:45:09 +0300

Zenflows.DB.Repo.Migrations: rename to "create_all_tables"

Diffstat:
Apriv/repo/migrations/20211110080000_create_all_tables.exs | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dpriv/repo/migrations/20211110080000_create_all_vf_tables.exs | 59-----------------------------------------------------------
2 files changed, 59 insertions(+), 59 deletions(-)

diff --git a/priv/repo/migrations/20211110080000_create_all_tables.exs b/priv/repo/migrations/20211110080000_create_all_tables.exs @@ -0,0 +1,59 @@ +# Zenflows is designed to implement the Valueflows vocabulary, +# written and maintained by srfsh <info@dyne.org>. +# Copyright (C) 2021-2022 Dyne.org foundation <foundation@dyne.org>. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. + +defmodule Zenflows.SQL.Repo.Migrations.Create_all_tables do +# New tables can be added on top of these as anoter migration files. +# The point of this migration is to just prevent circular references. +use Ecto.Migration + +def change() do + execute "CREATE EXTENSION citext", "DROP EXTENSION citext" + + create table("vf_unit") + create table("vf_spatial_thing") + create table("vf_process_specification") + create table("vf_resource_specification") + create table("vf_recipe_resource") + create table("vf_recipe_process") + create table("vf_recipe_exchange") + create table("vf_recipe_flow") + #create table("vf_accounting_scope") + create table("vf_agent") + create table("vf_role_behavior") + create table("vf_agent_relationship_role") + create table("vf_agent_relationship") + create table("vf_agreement") + create table("vf_scenario_definition") + create table("vf_scenario") + create table("vf_plan") + create table("vf_process") + create table("vf_product_batch") + create table("vf_economic_resource") + create table("vf_economic_event") + create table("vf_appreciation") + create table("vf_intent") + create table("vf_commitment") + create table("vf_fulfillment") + create table("vf_event_or_commitment") + create table("vf_satisfaction") + create table("vf_claim") + create table("vf_settlement") + create table("vf_proposal") + create table("vf_proposed_intent") + create table("vf_proposed_to") +end +end diff --git a/priv/repo/migrations/20211110080000_create_all_vf_tables.exs b/priv/repo/migrations/20211110080000_create_all_vf_tables.exs @@ -1,59 +0,0 @@ -# Zenflows is designed to implement the Valueflows vocabulary, -# written and maintained by srfsh <info@dyne.org>. -# Copyright (C) 2021-2022 Dyne.org foundation <foundation@dyne.org>. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <https://www.gnu.org/licenses/>. - -defmodule Zenflows.SQL.Repo.Migrations.Create_vf_tables do -# New tables can be added on top of these as anoter migration files. -# The point of this migration is to just prevent circular references. -use Ecto.Migration - -def change() do - execute "CREATE EXTENSION citext", "DROP EXTENSION citext" - - create table("vf_unit") - create table("vf_spatial_thing") - create table("vf_process_specification") - create table("vf_resource_specification") - create table("vf_recipe_resource") - create table("vf_recipe_process") - create table("vf_recipe_exchange") - create table("vf_recipe_flow") - #create table("vf_accounting_scope") - create table("vf_agent") - create table("vf_role_behavior") - create table("vf_agent_relationship_role") - create table("vf_agent_relationship") - create table("vf_agreement") - create table("vf_scenario_definition") - create table("vf_scenario") - create table("vf_plan") - create table("vf_process") - create table("vf_product_batch") - create table("vf_economic_resource") - create table("vf_economic_event") - create table("vf_appreciation") - create table("vf_intent") - create table("vf_commitment") - create table("vf_fulfillment") - create table("vf_event_or_commitment") - create table("vf_satisfaction") - create table("vf_claim") - create table("vf_settlement") - create table("vf_proposal") - create table("vf_proposed_intent") - create table("vf_proposed_to") -end -end