fixes #948
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AddVersionToNotes < ActiveRecord::Migration
|
||||
def change
|
||||
execute("set statement_timeout = 0")
|
||||
add_column :notes, :version, :integer, :null => false, :default => 0
|
||||
add_column :note_versions, :version, :integer, :null => false, :default => 0
|
||||
end
|
||||
end
|
||||
+7
-3
@@ -1938,7 +1938,8 @@ CREATE TABLE note_versions (
|
||||
is_active boolean DEFAULT true NOT NULL,
|
||||
body text NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
version integer DEFAULT 0 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -1977,7 +1978,8 @@ CREATE TABLE notes (
|
||||
body text NOT NULL,
|
||||
body_index tsvector NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
version integer DEFAULT 0 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -6269,4 +6271,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130321144736');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130322162059');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130322173202');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130322173202');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130322173859');
|
||||
Reference in New Issue
Block a user