[ARVADOS] created: 9a38a7c6881e36523d2e056cab1781fcfec4af8e
git at public.curoverse.com
git at public.curoverse.com
Thu Mar 12 11:41:03 EDT 2015
at 9a38a7c6881e36523d2e056cab1781fcfec4af8e (commit)
commit 9a38a7c6881e36523d2e056cab1781fcfec4af8e
Author: Tom Clegg <tom at curoverse.com>
Date: Thu Mar 12 11:42:26 2015 -0400
5207: Change expires_at column type from date to datetime.
diff --git a/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb b/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
new file mode 100644
index 0000000..e5ecd8a
--- /dev/null
+++ b/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
@@ -0,0 +1,9 @@
+class ChangeCollectionExpiresAtToDatetime < ActiveRecord::Migration
+ def up
+ change_column :collections, :expires_at, :datetime
+ end
+
+ def down
+ change_column :collections, :expires_at, :date
+ end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 007d05e..0711f90 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -168,7 +168,7 @@ CREATE TABLE collections (
name character varying(255),
description character varying(524288),
properties text,
- expires_at date,
+ expires_at timestamp without time zone,
file_names character varying(8192)
);
@@ -2362,4 +2362,6 @@ INSERT INTO schema_migrations (version) VALUES ('20150206230342');
INSERT INTO schema_migrations (version) VALUES ('20150216193428');
-INSERT INTO schema_migrations (version) VALUES ('20150303210106');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20150303210106');
+
+INSERT INTO schema_migrations (version) VALUES ('20150312151136');
\ No newline at end of file
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list