Logo
Explore Help
Register Sign In
yujunjun/knex
1
0
Fork 0
You've already forked knex
mirror of https://github.com/knex/knex.git synced 2025-07-15 04:51:04 +00:00
Code Issues Packages Projects Releases Wiki Activity
knex/lib/migrations/migrate/stub/eg.stub

15 lines
263 B
Plaintext
Raw Normal View History

Add Earl Grey support Add stubs for migrate, knexfile, and seed in Earl Grey. Add `.eg` extension in migrate and seed js files and `eg` filetype in cli js file. Remove dot from eg string Update build files Change cli to executable Update js-interpret for earl-grey
2015-07-28 02:06:24 -05:00
provide: up, down
Remove bluebird promises from typings. Do not pass promise to migrations and seeds. Remove knex.Promise (#3266)
2019-06-08 01:16:34 +02:00
up = (knex) ->
Add Earl Grey support Add stubs for migrate, knexfile, and seed in Earl Grey. Add `.eg` extension in migrate and seed js files and `eg` filetype in cli js file. Remove dot from eg string Update build files Change cli to executable Update js-interpret for earl-grey
2015-07-28 02:06:24 -05:00
<% if (d.tableName) { %>
knex.schema.createTable "<%= d.tableName %>": t ->
t.increments()
t.timestamp()
<% } %>
Remove bluebird promises from typings. Do not pass promise to migrations and seeds. Remove knex.Promise (#3266)
2019-06-08 01:16:34 +02:00
down = (knex) ->
Add Earl Grey support Add stubs for migrate, knexfile, and seed in Earl Grey. Add `.eg` extension in migrate and seed js files and `eg` filetype in cli js file. Remove dot from eg string Update build files Change cli to executable Update js-interpret for earl-grey
2015-07-28 02:06:24 -05:00
<% if (d.tableName) { %>
knex.schema.dropTable("<%= d.tableName %>")
<% } %>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 146ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API