File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
00000000000000_diesel_initial_setup Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ impl Plugin for Auth {
110
110
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
111
111
);
112
112
113
- SELECT diesel_manage_updated_at ('users');
113
+ SELECT manage_updated_at ('users');
114
114
115
115
CREATE TABLE user_sessions (
116
116
id SERIAL PRIMARY KEY,
@@ -121,7 +121,7 @@ impl Plugin for Auth {
121
121
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
122
122
);
123
123
124
- SELECT diesel_manage_updated_at ('user_sessions');
124
+ SELECT manage_updated_at ('user_sessions');
125
125
126
126
CREATE TABLE user_permissions (
127
127
user_id SERIAL NOT NULL REFERENCES users(id),
Original file line number Diff line number Diff line change 2
2
-- and other internal bookkeeping. This file is safe to edit, any future
3
3
-- changes will be added to existing projects as new migrations.
4
4
5
- DROP FUNCTION IF EXISTS diesel_manage_updated_at (_tbl regclass);
5
+ DROP FUNCTION IF EXISTS manage_updated_at (_tbl regclass);
6
6
DROP FUNCTION IF EXISTS diesel_set_updated_at();
Original file line number Diff line number Diff line change 14
14
-- ```sql
15
15
-- CREATE TABLE users (id SERIAL PRIMARY KEY, updated_at TIMESTAMP NOT NULL DEFAULT NOW());
16
16
--
17
- -- SELECT diesel_manage_updated_at ('users');
17
+ -- SELECT manage_updated_at ('users');
18
18
-- ```
19
- CREATE OR REPLACE FUNCTION diesel_manage_updated_at (_tbl regclass) RETURNS VOID AS $$
19
+ CREATE OR REPLACE FUNCTION manage_updated_at (_tbl regclass) RETURNS VOID AS $$
20
20
BEGIN
21
21
EXECUTE format(' CREATE TRIGGER set_updated_at BEFORE UPDATE ON %s
22
22
FOR EACH ROW EXECUTE PROCEDURE diesel_set_updated_at()' , _tbl);
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ CREATE TABLE todos (
5
5
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
6
6
);
7
7
8
- SELECT diesel_manage_updated_at (' todos' );
8
+ SELECT manage_updated_at (' todos' );
You can’t perform that action at this time.
0 commit comments