apiVersion: apps/v1 kind: Deployment metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.22.0 (955b78124) creationTimestamp: null labels: io.kompose.service: lb name: lb spec: replicas: 1 selector: matchLabels: io.kompose.service: lb strategy: type: Recreate template: metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.22.0 (955b78124) creationTimestamp: null labels: io.kompose.service: lb spec: containers: - env: - name: LIGHTNINGD_NETWORK value: regtest image: elementsproject/lightningd:latest name: lb resources: {} volumeMounts: - mountPath: /root/.lightning name: lb-claim0 restartPolicy: Always volumes: - name: lb-claim0 persistentVolumeClaim: claimName: lb-claim0 status: {} rk2'>ark2 coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)coinos
aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/user_preferences.js
blob: 36956dc0ffb6c8cad473bb4142c6a4b790b452c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
exports.up = function(knex) {
  return knex.schema.createTable('user_preferences', function(t) {
    t.increments('id').unsigned().primary();
    t.int('user_id').notNull();
    t.foreign('user_id').references('users.id');

    t.enum('default_unit', ['SAT', 'BTC', 'CAD']).notNull().defaultTo('SAT');
    t.enum('default_currency', ['CAD', 'USD']).notNull().defaultTo('CAD');
    t.enum('default_fiat', ['CAD', 'USD']).notNull().defaultTo('CAD');
    t.set('show_currencies', ['CAD', 'USD']).notNull().defaultTo('CAD');
    t.longtext(`subscriptions`).collate('utf8mb4').nullable(); // CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL")
    t.timestamps();
    
    // knex.raw("ALTER TABLE users MODIFY `subscriptions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL")
  })
}

exports.down = function(knex) {
  return knex.schema.dropTable('user_preferences');
};