export const 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") }) }; export const down = function(knex) { return knex.schema.dropTable('user_preferences'); }; t name='h' onchange='this.form.submit();'> coinos ui — legacy coinos.io web app (SvelteKit)coinos
aboutsummaryrefslogblamecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+page.svelte
blob: 09335e9c03d6551c5873109632e2d6842e7f9cf1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10