You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2013/02/18 16:27:33 UTC
[PATCH core 3/7] Core: Moved migrations to server/db/migrations
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
.../migrations/1_add_realm_to_machine_template.rb | 23 ++++++++++++++++++++++
.../migrations/1_add_realm_to_machine_template.rb | 23 ----------------------
2 files changed, 23 insertions(+), 23 deletions(-)
create mode 100644 server/db/migrations/1_add_realm_to_machine_template.rb
delete mode 100644 server/lib/db/migrations/1_add_realm_to_machine_template.rb
diff --git a/server/db/migrations/1_add_realm_to_machine_template.rb b/server/db/migrations/1_add_realm_to_machine_template.rb
new file mode 100644
index 0000000..8261efc
--- /dev/null
+++ b/server/db/migrations/1_add_realm_to_machine_template.rb
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+Sequel.migration do
+ up do
+ add_column :entities, :realm, String
+ end
+ down do
+ drop_column :entities, :realm
+ end
+end
diff --git a/server/lib/db/migrations/1_add_realm_to_machine_template.rb b/server/lib/db/migrations/1_add_realm_to_machine_template.rb
deleted file mode 100644
index 8261efc..0000000
--- a/server/lib/db/migrations/1_add_realm_to_machine_template.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership. The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-Sequel.migration do
- up do
- add_column :entities, :realm, String
- end
- down do
- drop_column :entities, :realm
- end
-end
--
1.8.1.2
Re: [PATCH core 3/7] Core: Moved migrations to server/db/migrations
Posted by David Lutterkort <lu...@redhat.com>.
On Mon, 2013-02-18 at 16:27 +0100, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
>
>
> Signed-off-by: Michal fojtik <mf...@redhat.com>
> ---
> .../migrations/1_add_realm_to_machine_template.rb | 23 ++++++++++++++++++++++
> .../migrations/1_add_realm_to_machine_template.rb | 23 ----------------------
> 2 files changed, 23 insertions(+), 23 deletions(-)
> create mode 100644 server/db/migrations/1_add_realm_to_machine_template.rb
> delete mode 100644 server/lib/db/migrations/1_add_realm_to_machine_template.rb
ACK; should be squashed into 1/7
David