Initial commit

This commit is contained in:
2025-12-07 14:32:46 +00:00
commit 0a0969b8af
4726 changed files with 536089 additions and 0 deletions

15
node_modules/knex/lib/migrations/migrate/stub/cjs.stub generated vendored Executable file
View File

@@ -0,0 +1,15 @@
exports.up = function(knex) {
<% if (d.tableName) { %>
return knex.schema.createTable("<%= d.tableName %>", function(t) {
t.increments();
t.timestamp();
});
<% } %>
};
exports.down = function(knex) {
<% if (d.tableName) { %>
return knex.schema.dropTable("<%= d.tableName %>");
<% } %>
};

13
node_modules/knex/lib/migrations/migrate/stub/coffee.stub generated vendored Executable file
View File

@@ -0,0 +1,13 @@
exports.up = (knex) ->
<% if (d.tableName) { %>
knex.schema.createTable "<%= d.tableName %>", (t) ->
t.increments()
t.timestamp()
<% } %>
exports.down = (knex) ->
<% if (d.tableName) { %>
knex.schema.dropTable "<%= d.tableName %>"
<% } %>

14
node_modules/knex/lib/migrations/migrate/stub/eg.stub generated vendored Executable file
View File

@@ -0,0 +1,14 @@
provide: up, down
up = (knex) ->
<% if (d.tableName) { %>
knex.schema.createTable "<%= d.tableName %>": t ->
t.increments()
t.timestamp()
<% } %>
down = (knex) ->
<% if (d.tableName) { %>
knex.schema.dropTable("<%= d.tableName %>")
<% } %>

22
node_modules/knex/lib/migrations/migrate/stub/js-schema.stub generated vendored Executable file
View File

@@ -0,0 +1,22 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function({schema}) {
<% if (d.tableName) { %>
return schema.createTable("<%= d.tableName %>", function(t) {
t.increments();
t.timestamp();
});
<% } %>
};
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function({schema}) {
<% if (d.tableName) { %>
return schema.dropTable("<%= d.tableName %>");
<% } %>
};

22
node_modules/knex/lib/migrations/migrate/stub/js.stub generated vendored Executable file
View File

@@ -0,0 +1,22 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function(knex) {
<% if (d.tableName) { %>
return knex.schema.createTable("<%= d.tableName %>", function(t) {
t.increments();
t.timestamp();
});
<% } %>
};
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function(knex) {
<% if (d.tableName) { %>
return knex.schema.dropTable("<%= d.tableName %>");
<% } %>
};

View File

@@ -0,0 +1,34 @@
# Update with your config settings.
module.exports =
development:
client: 'sqlite3'
connection:
filename: './dev.sqlite3'
migrations:
tableName: 'knex_migrations'
staging:
client: 'postgresql'
connection:
database: 'my_db'
user: 'username'
password: 'password'
pool:
min: 2
max: 10
migrations:
tableName: 'knex_migrations'
production:
client: 'postgresql'
connection:
database: 'my_db'
user: 'username'
password: 'password'
pool:
min: 2
max: 10
migrations:
tableName: 'knex_migrations'

View File

@@ -0,0 +1,43 @@
;; Update with your config settings.
module.exports = {
development = {
client = 'sqlite3'
connection = {
filename = './dev.sqlite3'
}
migrations = {
tableName = 'knex_migrations'
}
}
staging = {
client = 'postgresql'
connection = {
database = 'my_db'
user = 'username'
password = 'password'
}
pool = {
min = 2
max = 10
}
migrations = {
tableName = 'knex_migrations'
}
}
production = {
client = 'postgresql'
connection = {
database = 'my_db'
user = 'username'
password = 'password'
}
pool = {
min = 2
max = 10
}
migrations = {
tableName = 'knex_migrations'
}
}
}

View File

@@ -0,0 +1,47 @@
// Update with your config settings.
/**
* @type { Object.<string, import("knex").Knex.Config> }
*/
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './dev.sqlite3'
}
},
staging: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
},
production: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
}
};

View File

@@ -0,0 +1,35 @@
# Update with your config settings.
module.exports =
development:
client: 'sqlite3'
connection:
filename: './dev.sqlite3'
migrations:
tableName: 'knex_migrations'
staging:
client: 'postgresql'
connection:
database: 'my_db'
user: 'username'
password: 'password'
pool:
min: 2
max: 10
migrations:
tableName: 'knex_migrations'
production:
client: 'postgresql'
connection:
database: 'my_db'
user: 'username'
password: 'password'
pool:
min: 2
max: 10
migrations:
tableName: 'knex_migrations'

View File

@@ -0,0 +1,47 @@
import type { Knex } from "knex";
// Update with your config settings.
const config: { [key: string]: Knex.Config } = {
development: {
client: "sqlite3",
connection: {
filename: "./dev.sqlite3"
}
},
staging: {
client: "postgresql",
connection: {
database: "my_db",
user: "username",
password: "password"
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: "knex_migrations"
}
},
production: {
client: "postgresql",
connection: {
database: "my_db",
user: "username",
password: "password"
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: "knex_migrations"
}
}
};
module.exports = config;

14
node_modules/knex/lib/migrations/migrate/stub/ls.stub generated vendored Executable file
View File

@@ -0,0 +1,14 @@
exports.up = (knex, Promise) ->
<% if (d.tableName) { %>
knex.schema.create-table "<%= d.tableName %>", (t) ->
t.increments!
t.timestamp!
<% } %>
exports.down = (knex, Promise) ->
<% if (d.tableName) { %>
knex.schema.drop-table "<%= d.tableName %>"
<% } %>

23
node_modules/knex/lib/migrations/migrate/stub/mjs.stub generated vendored Executable file
View File

@@ -0,0 +1,23 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export const up = async (knex) => {
<% if (d.tableName) { %>
await knex.schema.createTable("<%= d.tableName %>", function(t) {
t.increments();
t.timestamp();
});
<% } %>
};
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export const down = async (knex) => {
<% if (d.tableName) { %>
await knex.schema.dropTable("<%= d.tableName %>");
<% } %>
};

21
node_modules/knex/lib/migrations/migrate/stub/ts-schema.stub generated vendored Executable file
View File

@@ -0,0 +1,21 @@
import { Knex } from "knex";
<% if (d.tableName) { %>
export async function up({schema}: Knex): Promise<Knex.SchemaBuilder> {
return schema.createTable("<%= d.tableName %>", (t) => {
t.increments();
t.timestamps();
});
}
<% } else { %>
export async function up({schema}: Knex): Promise<void> {
}
<% } %>
<% if (d.tableName) { %>
export async function down({schema}: Knex): Promise<Knex.SchemaBuilder> {
return schema.dropTable("<%= d.tableName %>");
}
<% } else { %>
export async function down({schema}: Knex): Promise<void> {
}
<% } %>

21
node_modules/knex/lib/migrations/migrate/stub/ts.stub generated vendored Executable file
View File

@@ -0,0 +1,21 @@
import type { Knex } from "knex";
<% if (d.tableName) { %>
export async function up(knex: Knex): Promise<Knex.SchemaBuilder> {
return knex.schema.createTable("<%= d.tableName %>", (t) => {
t.increments();
t.timestamps();
});
}
<% } else { %>
export async function up(knex: Knex): Promise<void> {
}
<% } %>
<% if (d.tableName) { %>
export async function down(knex: Knex): Promise<Knex.SchemaBuilder> {
return knex.schema.dropTable("<%= d.tableName %>");
}
<% } else { %>
export async function down(knex: Knex): Promise<void> {
}
<% } %>