-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from shiftcommerce/add_support_for_structure_sql
Add support for structure.sql files
- Loading branch information
Showing
4 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Penthouse | ||
VERSION = "0.12.2" | ||
VERSION = "0.13" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
SET search_path = this_should_get_replaced; | ||
|
||
CREATE TABLE posts ( | ||
id integer NOT NULL, | ||
title character varying NOT NULL, | ||
description character varying NOT NULL, | ||
created_at timestamp without time zone NOT NULL, | ||
updated_at timestamp without time zone NOT NULL | ||
); | ||
|
||
CREATE SEQUENCE posts_id_seq | ||
START WITH 1 | ||
INCREMENT BY 1 | ||
NO MINVALUE | ||
NO MAXVALUE | ||
CACHE 1; | ||
|
||
ALTER SEQUENCE posts_id_seq OWNED BY posts.id; | ||
|
||
ALTER TABLE ONLY posts ALTER COLUMN id SET DEFAULT nextval('posts_id_seq'::regclass); | ||
|
||
ALTER TABLE ONLY posts | ||
ADD CONSTRAINT posts_pkey PRIMARY KEY (id); |